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
Getting Started with vSphere Command-Line Interfaces
22 VMware, Inc.
7ClickInstalltoproceedwiththeinstallation.
Theinstallationmighttakeseveralminutestocomplete.
8 Rebootyoursystem.
Withoutreboot,pathsettingsmightnotbecorrectonyourWindowsplatform.
Uninstalling the vCLI Package on Windows
YoucanuninstallthevCLIpackageasyouwouldotherprograms.
To uninstall vCLI on Windows
1FindtheoptionforaddingandremovingprogramsontheWindowsoperatingsystemyouareusing.
2Inthepanelthatappears,selectVMwarevSphereCLI,andclickRemove.
3ClickYeswhenprompted.
ThesystemuninstallsthevSphereSDK
forPerl,thevCLI,andallprerequisitesoftware.
Enabling Certificate Verification
ThevSphereSDKforPerlandvCLIuseCrypt::SSLEaytosupportcertificateverification.Crypt::SSLEay
allowsverificationofcertificatessignedbyaCertificateAuthority(CA)ifyousetthefollowingtwovariables:
HTTPS_CA_FILE–TheCAfile.
HTTPS_CA_DIR–TheCAdirectory.
SeetheCrypt::SSLEaydocumentationfordetailsonsetup.
Deploying vMA
Asanalternativetoapackageinstallation,youcandeployvMAonanESXihostandrunvCLIcommandsfrom
there.vMAisavirtualmachineyoucanusetorunscriptstomanageESXisystems.vMAincludesaLinux
environment,vCLI,andotherprepackagedsoftware.
SettingupvMAconsistsof
afewtasks.ThevSphereManagementAssistantGuidediscusseseachtaskindetail.
1DeployvMAtoanESXisystemthatmeetsthehardwareprerequisites.
SeethevSphereManagementAssistantGuideforprerequisitesanddeploymentdetails.
2ConfigurevMA.
WhenyoubootvMA,youmustspecifythefollowingrequiredconfigurationinformationwhen
prompted:
Networkinformation(thedefaultisoftenacceptable)
HostnameforvMA.
Passwordforthevi‐adminuser.Thevi‐adminuserhassuperuserprivilegesonvMA.Youcannotlog
intovMAastherootuser.
3 (Optional)AddavCenterServersystemoroneormoreESXisystemsastargets.YouconfigurevMAfor
ActiveDirectoryauthenticationandcanthenaddESXi
andvCenterServersystemstovMAwithout
havingtostorepasswordsinthevMAcredentialstore.SeethevSphereManagementAssistantGuide.
CAUTIONIfthetwoenvironmentvariablesHTTPS_CA_FILEandHTTPS_CA_DIRaresetincorrectlyorifa
problemwiththecertificateexists,vCLIcommandsdonotcomplete,anddonotprinterrororwarning
messages.UseHTTPS_DEBUGfortroubleshootingbeforerunningvCLIcommands.