VMware, Inc. 9
Chapter 1 Managing vSphere with Command-Line Interfaces
esxcfg-commands AvailableintheESXiShell.esxcfg-commandsarestillincluded
inthisreleasebutaredeprecated.Migrateto
ESXCLIwhere
possible.
Command‐LineManagement
ofvSphere5andvSphere6
forServiceConsoleUsers
DCLIcommands ManageVMwareSDDCservices.
DCLIisaCLIclienttothevCloudSuiteSDKinterfacefor
managingVMwareSDDCservices.ADCLIcommandtalkstoa
vCloudSuiteAPIendpointtolocaterelevantinformation,and
thenexecutesthecommandanddisplaysresulttotheuser.
YoucanrunDCLIcommandsasfollows.
vCenterServerappliance.RunDCLIcommandsfromthe
vCenterServerApplianceshell.See“RunningDCLI
CommandsonthevCenterServerAppliance”onpage 42.
vCenterServerWindowscommandprompt.InstallvCenter
ServeronasupportedWindowssystemandrunDCLI
commandsfromthecommandprompt.
vCLIpackage.
OpenacommandpromptonaLinuxorWindows
systemonwhichyouinstalledvCLI.Entercommands
intothatcommandprompt,specifyingconnection
options.See“RunningDCLICommands”onpage 41.
AccessthevMALinuxconsole.DCLIdoesnotsupport
thevi‐fastpassconnections.
PreparescriptsthatincludeDCLIcommandsandrunthe
scriptsasvCLIscriptsfromthevCenterServerWindows
commandpromptorfromthevCenterServerAppliance
shell.
“RunningDCLI
Commands”onpage 39
SeethevCloudSuiteSDK
documentationfor
informationabout
currentlysupported
servicesandhowthey
interact.
VMwarePowerCLI
cmdlets
VMware
vSpherePowerCLIprovidesaWindowsPowerShell
interfacetothevSphereAPI.vSpherePowerCLIincludes
PowerShellcmdletsforadministeringvSpherecomponents.
vSpherePowerCLIincludesmorethan370cmdlets,asetof
samplescripts,andafunctionlibraryformanagementand
automation.ThevSphereImageBuilderPowerCLIandthe
vSphereAutoDeploy
PowerCLIareincludedwhenyouinstall
vSpherePowerCLI.
VMwarePowerCLI
documentationset.
localclicommands SetofcommandsforusewithVMwareTechnicalSupport.
localclicommandsareequivalentto
ESXCLIcommands,but
bypassthehostedaemon(hostd).Thelocalclicommandsare
onlyforsituationswhenhostdisunavailableandcannotbe
restarted.Afteryourunalocalclicommand,youmustrestart
hostd.Run
ESXCLIcommandsaftertherestart.
Warning:Ifyouusealocalclicommand,aninconsistent
systemstateandpotentialfailurecanresult.
pktcap-uwutility Enablesyoutomonitorthetrafficthatflowsthroughphysical
networkadapters,VMkerneladapters,andvirtualmachine
adapters,andtoanalyze thepacketinformationbyusing
conventionalnetworkanalysis
toolssuchasWireshark.
vSphereNetworking
documentation
dir-cli
vecs-cli
certool
CommandsformanagingthevCenterSingleSign‐Onand
certificateinfrastructure.
vSphereSecurity
documentation
appliancesh EnablesyoutoconfigureandtroubleshootthevCenterServer
Applianceandtomonitortheprocessesandservicesrunningin
theappliance.
vCenterServerAppliance
Configuration
documentation
Command set Description See