6.0
Table Of Contents
- Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
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“UsingtheESXiShell”onpage 5.
Figure 1illustratesthedifferencesbetweenCLIsinESXi4.1andESXi5.0andlater.
InESX4.1,afairlylargesetofserviceconsolecommandsisavailable.AsmallsetofESXCLIcommands
isavailableinboththeserviceconsoleandaspartofthevCLIpackage.ThevCLIpackageincludes,in
additiontoESXCLIcommands,asetofvicfg-commandsandothercommandsfor
hostmanagement.
ESXi5.0andlaterdoesnotincludeaserviceconsole.IntheESXiShell,youcanrunamuchexpandedset
ofESXCLIcommandsandasmallsetofothercommands.ThesameESXCLIcommands,aswellasafew
othercommands,areincludedinthevCLIpackageforoff‐host
management.
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 and vSphere 5.1 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 10.
Linuxnetworking
commands.
NotavailableintheESXiShell.UseESXCLI
commandsinstead.
See“RetrievingNetworking
Information”onpage 13.
Serviceconsolelogs Fine‐grainedcontroloversystemlogsis
available.Youcansendlogstothelocal
systemortoaremotehost.
“LogginginvSp here5andLater”on
page 10