6.0

Table Of Contents
VMware, Inc. 19
Chapter 2 Installing vCLI
To install vCLI on RHEL
1UntarthevCLIbinarythatyoudownloaded.
tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.XXXX.x86_64.tar.gz
Avmware-vsphere-vcli-distribdirectoryiscreated.
2Loginassuperuserandruntheinstaller:
/<location>/sudo vmware-vsphere-cli-distrib/vmware-install.pl
3Toacceptthelicenseterms,typeyesandpressEnter.
4ToinstallPerlmoduleslocally,typeyesandpressEnter.
5Specifyaninstallationdirectory,orpressEntertoacceptthedefault,whichis/usr/bin.
Acompleteinstallationprocesshasthefollowingresult:
Asuccessmessageappears.
Theinstallerlistsdifferentversionnumbersforrequiredmodules(ifany).
Thepromptreturnstotheshellprompt.
Ifyouacceptedthedefaultsduringinstallation,youcanfindtheinstalledsoftwareinthefollowinglocations:
vCLIscripts/usr/bin
vSphereSDKforPerlutilityapplications/usr/lib/vmware-vcli/apps
vSphereSDKforPerlsamplescripts/usr/share/doc/vmware-vcli/samples
SeethevSphereSDKforPerldocumentationforareferencetoallutilityapplications.
AfteryouinstallthevCLI,youcantesttheinstallationbyrunningacommandfromthecommandprompt.See
“RunningHostManagementCommandsfromaLinuxSystem”onpage 37.
Installing vCLI on Linux Systems with Internet Access
BeforeyoucaninstallthevCLIpackageonaLinuxsystemwithInternetaccess,thatsystemmustmeet
followingprerequisites.
Internetaccess.YoumusthaveInternetaccesswhenyouruntheinstallerbecausetheinstallerusesCPAN
toinstallprerequisitePerlmodules.
DevelopmentToolsandLibraries.YoumustinstalltheDevelopmentToolsandLibrariesfortheLinux
platformthatyouareworkingwithbeforeyouinstallvCLIandprerequisitePerlmodules.
Proxysettings.IfyoursystemisusingaproxyforInternetaccess,youmustsetthehttp://andftp://
proxies,asfollows:
export http_proxy=<proxy_server>:port
export ftp_proxy=<proxy_server>:port
Installing Required Prerequisite Software for Linux Systems with Internet
Access
Ifrequiredprerequisitesoftwareisnotinstalled,theinstallerstopsandrequeststhatyouinstallit.Installation
ofprerequisitesoftwaredependsontheplatformthatyouareusing.SeetheReleaseNotesforthesupported
versionsofeachLinuxplatform.