VMware, Inc. 2
Command-Line Management in vSphere 5.0 for Service Console Users
Transitioning Service Console Commands
Ifyouarecurrentlymanagingyourenvironmentwithserviceconsolecommands,youcanperformthesame
managementtasksinvSphere5.0inoneofthefollowingways.
UseoneofthevSphereClientinterfaces.
InstallvCLIorPowerCLIonamanagementserver,writescriptswiththosecommands,andrunthescripts
againsttargethosts.See“RunningvCLIorPowerCLICommandsfromRemoteHosts”onpage 3.
Forcertaintroubleshootingandadvancedmanagementcommands,usecommandsfromtheESXCLI
commandsetdirectlytheESXiShell.See“UsingtheESXiShell”onpage 5.
Figure 1illustratesthedifferencesbetweenCLIsinESXi4.1andESXi5.0.
InESX4.1,afairlylargesetofserviceconsolecommandsisavailable.AsmallsetofESXCLIcommands
isavailableinboththeserviceconsoleandaspartofthevCLIpackage.ThevCLIpackageincludes,in
additiontoESXCLIcommands,asetofvicfg-commandsandothercommandsfor
hostmanagement.
ESXi5.0doesnotincludeaserviceconsole.IntheESXiShell,youcanrunamuchexpandedsetofESXCLI
commandsandasmallsetofothercommands.ThesameESXCLIcommands,aswellasafewother
commands,areincludedinthevCLIpackageforoff‐hostmanagement.
vMA ALinuxvirtualappliancethatincludesthe
vSphereSDKforPerlandthevCLIpackage.
Alsosupportsthevi‐fastpassauthentication
component.
DeployvMAonanESXisystemandrun
commandsagainstauthenticatedtargetservers
fromvMA.
ESXiShell
commands
Setoftroubleshootingcommandstousewhen
vCLIcannotaccessyour
ESXisystem.Includes
ESXCLIcommandsandesxcfg-commands
(deprecated).
TheESXiShellisdisabledbydefault.Youcan
enabletheShellforlocalorremoteaccess.
CLI or Tool Description Availability
ESX 4.x Service Console vSphere 5.0 See
Serviceconsolecommands Off‐hostmanagementwithvCLI.
InstallonWindowsorLinuxorusevMA.
“TransitioningServiceConsole
Commands”onpage 2.“Referenceto
ReplacementsforServiceConsole
Commands”onpage 13listsvCLIor
ESXCLIreplacementsforserviceconsole
commandsandpointstomigrationlists
inthistechnicalnote.
Serviceconsolecommands Off
‐hostmanagementwithVMware
PowerCLIcmdletsfromaWindowssystem.
GettingStartedwithvSphere
Command‐LineInterfaces
vSphereCommand‐LineInterfaceSolutions
andExamples
Serviceconsolecommands On‐hostmanagementintheESXiShellis
possibleifsystemfailuresorotherissues
preventyoufromusingoff‐hostmanagement
commands.
ESXiShell
isdisabledbydefault
See“ESXiShellLocalAccess”onpage 5
and“RemoteAccesstoESXiShellUsing
SSH”onpage 7.
Agents IfyourunagentsintheESX4.xservice
console,youcanreplacethemwith
infrastructureservicesinmanycases.
Runningthird‐partyagentsintheESXiShell
isnotsupported.
“ReplacingAgents”onpage 9.
Linuxnetworking
commands.
NotavailableintheESXiShell.UseESXCLI
commandsinstead.
See“RetrievingNetworking
Information”onpage 12.
Serviceconsolelogs Fine‐grainedcontroloversystemlogsis
available.Youcansendlogstothelocal
systemortoaremotehost.
“LogginginvSp here5.0”onpage 10