6.0

VMware, Inc. 3
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
Figure 1. Command-Line Interfaces in ESX 4.1 and ESXi 5.0 and later
Using vSphere Client Interfaces
MosttasksyouperformintheESXServiceConsolecanbeperformedbyoneofthegraphicaluserinterfaces
toESXiorvCenterServersystems.Theinterfacesallowyoutomanageyourinfrastructure,andtoperform
operationsonmultiplehostsatthesametime.
InstallthevSphereClientontheWindowssystemofyourchoiceandconnecttoanESXiorvCenterServer
system.Performmanagementoperationsusingtheclient.
UsethevSphereWebClientfromoneofthesupportedbrowsers.ThevSphereWebClientisanew
interfaceandsupportsprimarilyoperationsonvirtualmachines.
vSphere5documentationexplainshowtoperformtasksbyusingoneoftheclientUIs.Onlinehelpisavailable
frombothclientUIs.
Running vCLI or PowerCLI Commands from Remote Hosts
IfyouhavescriptsthatuseESX4.xserviceconsolecommandsorruncommandsintheESX4.xserviceconsole
directly,runningvCLIcommandsorPowerCLIcmdletsfromthehostonwhichyouinstalledthosepackages
givesthebestresults.Runningoffhostishighlyrecommendedbecauseitfacilitatesscripting.
You
canusevCLIevenifhostsareinlockdownmodebytargetingthevCenterServersystemandspecifying
thetargetESXihostwiththe--vihostparameter,forexample:
esxcli --server <my_vc> --vihost <my_esxi> [<authentication>] storage nfs list
Ifyoudonotspecifyadditionalauthenticationparameters,thevCLIinfrastructurepromptsforausername
andpasswordforthevCenterServersystemspecifiedby--server.
vCLI Command Set
ThevCLIcommandsetincludescommonsystemadministrationcommandswhichyoucanrunagainstESXi
systemsfromanymachinewithnetworkaccesstothosesystems.YoucanalsorunmostvCLIcommands
againstavCenterServersystemandtargetanyESXisystemthatvCenterServersystemmanages.
InstallthevCLIcommand
setonasupportedversionsofWindowsorLinux.Theuserrunningacommand
againstaservermustbeauthenticatedforthatserver.ThevCLIpackageincludesseveralcommandsets.
ESXCLIESXCLI
vCLI
ESXCLI
ESXCLI
vicfg-and other
commands
vicfg-and other commands
Service console commands
esxcfg-
(deprecated)
POSIX
(subset)
ESX 4.1
ESXi 5
Commands running on host
vCLI
Commands running on host