6.0
Table Of Contents
- Getting Started with vSphere Command-Line Interfaces
- Contents
- About This Book
- Managing vSphere with Command-Line Interfaces
- Installing vCLI
- Running Host Management Commands in the ESXi Shell
- Running vCLI Host Management Commands
- Overview of Running vCLI Host Management Commands
- Protecting Passwords
- Authenticating Through vCenter Server and vCenter Single Sign-On
- Authenticating Directly to the Host
- Trust Relationship Requirement for ESXCLI Commands
- Common Options for vCLI Host Management Command Execution
- Using vCLI Commands in Scripts
- Running Host Management Commands from a Windows System
- Running Host Management Commands from a Linux System
- Running DCLI Commands
- Index
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