6.0

VMware, Inc. 2
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
Transitioning Service Console Commands
Ifyouarecurrentlymanagingyourenvironmentwithserviceconsolecommands,youcanperformthesame
managementtasksinvSphere5.0andvSphere5.1inoneofthefollowingways.
UseoneofthevSphereClientinterfaces.
InstallvCLIorPowerCLIonamanagementserver,writescriptswiththosecommands,andrunthescripts
againsttargethosts.See“RunningvCLIorPowerCLICommandsfromRemoteHosts”onpage 3.
Forcertaintroubleshootingandadvancedmanagementcommands,usecommandsfromtheESXCLI
commandsetdirectlytheESXiShell.See“UsingtheESXiShellonpage 5.
Figure 1illustratesthedifferencesbetweenCLIsinESXi4.1andESXi5.0andlater.
InESX4.1,afairlylargesetofserviceconsolecommandsisavailable.AsmallsetofESXCLIcommands
isavailableinboththeserviceconsoleandaspartofthevCLIpackage.ThevCLIpackageincludes,in
additiontoESXCLIcommands,asetofvicfg-commandsandothercommandsfor
hostmanagement.
ESXi5.0andlaterdoesnotincludeaserviceconsole.IntheESXiShell,youcanrunamuchexpandedset
ofESXCLIcommandsandasmallsetofothercommands.ThesameESXCLIcommands,aswellasafew
othercommands,areincludedinthevCLIpackageforoffhost
management.
vMA ALinuxvirtualappliancethatincludesthe
vSphereSDKforPerlandthevCLIpackage.
Alsosupportsthevifastpassauthentication
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 and vSphere 5.1 See
Serviceconsolecommands OffhostmanagementwithvCLI.
InstallonWindowsorLinuxorusevMA.
“TransitioningServiceConsole
Commands”onpage 2.“Referenceto
ReplacementsforServiceConsole
Commands”onpage 13listsvCLIor
ESXCLIreplacementsforserviceconsole
commandsandpointstomigrationlists
inthistechnicalnote.
Serviceconsolecommands Off
hostmanagementwithVMware
PowerCLIcmdletsfromaWindowssystem.
GettingStartedwithvSphere
CommandLineInterfaces
vSphereCommandLineInterfaceSolutions
andExamples
Serviceconsolecommands OnhostmanagementintheESXiShellis
possibleifsystemfailuresorotherissues
preventyoufromusingoffhostmanagement
commands.
ESXiShell
isdisabledbydefault
See“ESXiShellLocalAccess”onpage 5
and“RemoteAccesstoESXiShellUsing
SSH”onpage 7.
Agents IfyourunagentsintheESX4.xservice
console,youcanreplacethemwith
infrastructureservicesinmanycases.
RunningthirdpartyagentsintheESXiShell
isnotsupported.
“ReplacingAgents”onpage 10.
Linuxnetworking
commands.
NotavailableintheESXiShell.UseESXCLI
commandsinstead.
See“RetrievingNetworking
Information”onpage 13.
Serviceconsolelogs Finegrainedcontroloversystemlogsis
available.Youcansendlogstothelocal
systemortoaremotehost.
“LogginginvSp here5andLateron
page 10