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. 39
5f
YoucanrunDCLIcommandsasvCLIcommands,fromthevCenterServerApplianceshell,andfromthe
commandpromptofavCenterServerWindowsinstallation.
“OverviewofRunningDCLICommands”onpage 39
“RunningDCLICommands”onpage 41
“Input,Output,andReturnCodes”onpage 43
“UsingDCLIwithVariables”onpage 43
“DCLIHistoryFile”onpage 44
Overview of Running DCLI Commands
YoucanrunDCLIcommandsinteractivelyorinscriptsinseveralways.
RunDCLIcommandslocallyfromthevCenterServerApplianceshell.
RunDCLIcommandslocallyfromyourvCenterServeronWindowscommandprompt.
RunDCLIcommandsthatareincludedinthevCLIpackage.
OpenacommandpromptonaLinuxorWindowssystemonwhichyouinstalledvCLI.Enter
commandsintothatcommandprompt,specifyingconnectionoptions.
AccessthevMALinuxconsole.DCLIdoesnotsupportthevi‐fastpassconnectionsavailablefrom
vMA.
PreparescriptsthatcontainDCLIcommands.ThenrunthescriptsasvCLIscripts,fromthevCenter
ServerWindowscommandprompt,orfromthevCenterServerApplianceshell.Usethecredentialstore
optionstoauthenticate,passwordsarenotsupportedinscripts.
Running DCLI Commands
5
IMPORTANTAuthenticationoptionsforDCLIcommandsdifferfromoptionsforvCLIhostmanagement
commands.
I
MPORTANTUserswhorunDCLIcommandstomonitorandmanagevCenterservicesmusthavethe
appropriateprivileges.
WhenyourunDCLIcommandsincludedwithvCLI,youmustbeauserwhocanauthenticatetovCenter
SingleSign‐Onandwhoisalsoauthorizedtoperformtheservice,forexample,managevCentertags.
WhenyourunDCLIcommandsfromthevCenterServerApplianceshell,DCLIallowsyoutorunmany
commandswithoutadditionalauthentication.However,formanagementofcertainservices,youmight
bepromptedforausernameandpassword.