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. 21
Chapter 2 Installing vCLI
Acompleteinstallationprocesshasthefollowingresult:
Asuccessmessageappears.
Theinstallerlistsdifferentversionnumbersforrequiredmodules(ifany).
Thepromptreturnstotheshellprompt.
Ifyouacceptedthedefaultsduringinstallation,youcanfindtheinstalledsoftwareinthefollowinglocations:
vCLIscripts–/usr/bin
vSphereSDKforPerlutilityapplications–/usr/lib/vmware-vcli/apps
vSphereSDKforPerlsamplescripts–/usr/share/doc/vmware-vcli/samples
SeethevSphereSDKforPerldocumentationforareferencetoallutilityapplications.AfteryouinstallvCLI,
youcantesttheinstallationbyrunningavCLIcommandorvSphereSDKforPerlutilityapplicationfromthe
commandprompt.
Uninstalling the vCLI Package on Linux
YoucanuseascriptincludedintheinstallationtouninstallthevCLIpackage.
To uninstall vCLI on Linux
1 ChangetothedirectorywhereyouinstalledvCLI(defaultis/usr/bin).
2Runthevmware-uninstall-vSphere-CLI.pl
script.
ThecommanduninstallsvCLIandthevSphereSDKforPerl.
Installing and Uninstalling vCLI on Windows
BeforeyoucanrunvCLIcommandsfromyourWindowssystem,youmustinstallthevCLIpackageandtest
theinstallationbyrunningacommand.
ThevCLIinstallationpackageforWindowsincludestheActivePerlruntimefromActiveStateSoftwareand
requiredPerlmodulesandlibraries.ThevCLIissupportedontheWindowsplatforms
thatarelistedinthe
ReleaseNotes.
To install the vCLI Package on Windows
1 DownloadthevCLIWindowsinstallerpackage.
YoucanfindtheinstallerintheAutomationToolsandSDKssectionoftheDrivers&Toolstabofthe
vSpheredownloadpage.
2Starttheinstaller.
3 (Optional)IfpromptedtoremoveolderversionsofvSphereSDK
forPerlorvCLI,youcaneitheraccept
orcanceltheinstallation,andinstallthevCLIpackageonadifferentsystem.
4ClickNextintheWelcomepage.
5ToinstallthevCLIinanondefaultdirectory,clickChangeandselectthedirectory.
ThedefaultlocationisC:\Program Files\VMware\VMware vSphere CLI.
6ClickNext.
I
MPORTANTIfyouwanttorunESXCLIcommandsincludedinvCLIfromaWindowssystem,youmusthave
theVisualC++2008redistributablefor32bitinstalledonthatsystem.Findvcredist_x86.exeforVisualC++
2008andinstallitonyourWindowssystem.
I
MPORTANTTheinstallerreplacesboththevSphereSDKforPerlandvCLI.Tokeepanolderversion,
installthispackageonadifferentsystem.