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. 27
4f
YoucanrunvSphereCommand‐LineInterface(vCLI)hostmanagementcommandsfromthecommandline
ofthesystemwhereyouinstalledthepackage,fromthevMAcommandline,andfromscripts.
Hostmanagementcommands,whichincludeESXCLIandvicfg-commands,requireataminimumthe
targetservertorunthecommand
on.Usersmustauthenticatetothehost,andcanonlyperformtasksthatthey
areauthorizedtoperform.
Thischapterincludesthefollowingtopics:
“OverviewofRunningvCLIHostManagementCommands”onpage 27
“ProtectingPasswords”onpage 28
“AuthenticatingThroughvCenterServerandvCenterSingleSign‐On”onpage 29
“AuthenticatingDirectlytotheHost”onpage 30
“TrustRelationshipRequirementforESXCLICommands”onpage 33
“CommonOptionsforvCLIHostManagementCommandExecution”onpage 34
“UsingvCLICommandsinScripts”onpage 36
“RunningHostManagementCommandsfromaWindowsSystem”onpage 37
“RunningHostManagementCommandsfromaLinuxSystem”onpage 37
Overview of Running vCLI Host Management Commands
YoucanrunvCLIcommandsinteractivelyorinscripts,andyoucantargetthehostdirectlyortargetavCenter
Serversystemthatmanagesthehost.
Targeting the Host Directly
YoucantargetthehostdirectlyfromanadministrationserveronwhichyouinstalledVCLI,usevMA,orrun
scripts.
OpenacommandpromptonaLinuxorWindowssystemonwhichyouinstalledvCLI.Entercommands
intothatcommandprompt,specifyingconnectionoptions.See“AuthenticatingDirectlytotheHost”on
page 30.
Running vCLI Host Management
Commands
4
NOTESee“RunningDCLICommands”onpage 39forinformationaboutDCLIcommands,whichyoucan
usetomanagevCenterServerservices.
I
MPORTANTIfanESXisystemthatyoutargetisinlockdownmode,youcannotrunvCLIcommandsagainst
thatsystemdirectly.YoumusttargetavCenterServersystemthatmanagestheESXisystemandusethe
--vihostoptiontospecifytheESXitarget.See“vCLIandLockdownMode”onpage 32.