
VMware, Inc. 23
3
YoucanrunvSphereCommand‐LineInterface(vCLI)commandsfromthecommandlineofthesystemwhere
youinstalledthepackage,fromthevMAcommandline,andfromscripts.Eachcommandrequiresata
minimumthetargetservertorunthecommandon.Usersauthorizedtoruncommandsonthetarget
server
donothavetospecifyauthenticationinformation.Otherusersmustspecifyauthenticationinformation.
Thischapterincludesthefollowingtopics:
“OverviewofRunningCommands”onpage 23
“SpecifyingAuthenticationInformation”onpage 24
“CommonOptionsforvCLIExecution”onpage 27
“UsingvCLICommandsinScripts”onpage 29
Overview of Running Commands
YoucanrunvCLIcommandsinteractivelyorinscriptsinseveralways.
OpenacommandpromptonaLinuxorWindowssystemonwhichyouinstalledvCLI.Entercommands
intothatcommandprompt,specifyingconnectionoptions.
AccessthevMALinuxconsole.SetuptargetserversandrunvCLIcommandsagainstthetargetswithout
additionalauthentication.
PreparescriptsthatcontainvCLIcommands.Thenrunthescriptsfromaremoteadministrationserver
thathasthevCLIpackageinstalledorfromthevMALinuxconsole.See“UsingvCLICommandsin
Scripts”onpage 29.
WhenyouruncommandsagainstanESXihost,youmustbeauthenticatedforthathost.When
yourun
commandsagainstavCenterServersystem,andyouareauthenticatedforthatsystem,youcantargetallESXi
hoststhatvCenterServermanageswithoutadditionalauthentication.See“SpecifyingAuthentication
Information”onpage 24.
Using the vSphere Command-Line
Interface
3
IMPORTANTIfanESXisystemthatyoutargetisinlockdownmode,youcannotrunvCLIcommandsagainst
thatsystemdirectly.YoumusttargetavCenterServersystemthatmanagestheESXisystemandusethe
--vihostoptiontospecifytheESXitarget.See“vCLIandLockdownMode”onpage 27.
CAUTIONIfyouspecifypasswordsinplaintext,youriskexposingthepasswordtootherusers.Thepassword
mightalsobecomeexposedinbackupfiles.Donotprovideplain‐textpasswordsonproductionsystems.
Comentários a estes Manuais