6.0
Table Of Contents
- vSphere SDK for Perl Installation Guide
- Contents
- Installing vSphere SDK for Perl
- Installation Overview
- Overview of Linux Installation Process
- Installing the vSphere SDK for Perl Package on Red Hat Enterprise Linux
- Installing vSphere SDK for Perl on Linux Systems with Internet Access
- Uninstalling the vSphere SDK for Perl Package on Linux
- Installing and Uninstalling vSphere SDK for Perl on Windows
- Enabling Certificate Verification
- Deploying vMA
VMware, Inc. 21
Chapter 2 Installing vSphere SDK for Perl
Installing the vSphere SDK for Perl Package on a Linux System with Internet
Access
InstallthevSphereSDKforPerlpackageandrunacommandtoverifyinstallationwassuccessful.
To install vSphere SDK for Perl
1Loginasroot.
2UntarthevSphereSDKforPerlbinarythatyoudownloaded.
tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.i386.tar.gz
Avmware-vsphere-vcli-distribdirectoryiscreated.
3 (Optional)IfyourserverusesaproxytoaccesstheInternet,andifyourhttp://andftp://proxywere
notsetwhenyouinstalledprerequisitesoftware,setthemnow.
export http_proxy=<proxy_server>:port
export ftp_proxy=<proxy_server>:port
4Runtheinstaller:
sudo vmware-vsphere-cli-distrib/vmware-install.pl
5Toacceptthelicenseterms,typeyesandpressEnter.
TheinstallerconnectstoCPANandinstallsprerequisitesoftware.Establishingaconnectionmighttakea
longtime.
6OnRHEL,whenpromptedtoinstallprecompiledPerlmodules,typenoandpressEntertouseCPAN
TheinstallerconnectstoCPANandinstallsprerequisite
software.Establishingaconnectionmighttakea
longtime.
7Specifyaninstallationdirectory,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.AfteryouinstallvSphere
SDKforPerl,youcantesttheinstallationbyrunningavCLIcommandorvSphereSDKforPerlutility
applicationfromthecommandprompt.
Uninstalling the vSphere SDK for Perl Package on Linux
YoucanuseascriptincludedintheinstallationtouninstallthevSphereSDKforPerlpackage.
To uninstall vSphere SDK for Perl on Linux
1 ChangetothedirectorywhereyouinstalledvSphereSDKforPerl(defaultis/usr/bin).
2Runthevmware-uninstall-vSphere-CLI.pl script.
ThecommanduninstallsvCLIandthevSphereSDKforPerl.