6.0

Getting Started with vSphere Command-Line Interfaces
16 VMware, Inc.
Afterinstallation,youcanrunvCLIcommandsandvSphereSDKforPerlutilityapplicationsfromthe
operatingsystemcommandline.Eachtimeyourunacommand,youspecifythetargetserverconnection
optionsdirectlyorindirectly.YoucanalsowritescriptsandmanageyourvSphereenvironmentusing
thosescripts.
vSphereManagementAssistant(vMA).DeployvMA,avirtualmachinethatadministratorscanuseto
runscriptsthatmanagevSphere,onanESXihost.vMAincludesvCLI,vSphereSDKforPerl,andother
prepackagedsoftwareinaLinuxenvironment.
vMAsupportsnoninteractivelogin.IfyouestablishanESXihostasatarget
server,youcanrunvCLIhost
managementcommandsandvSphereSDKforPerlcommandsagainstthatserverwithoutadditional
authentication.IfyouestablishavCenterServ ersystemasatargetserver,youcanrunmostvSphereSDK
forPerlcommandsagainstallESXisystemsthatservermanageswithoutadditionalauthentication.
See
“DeployingvMA”onpage 22.
Overview of Linux Installation Process
TheinstallationscriptforvSphereSDKforPerlissupportedontheLinuxdistributionsthatarelistedinthe
ReleaseNotes.
ThevSphereSDKforPerlpackageinstallerinstallsthevCLIscriptsandthevSphereSDKforPerl.The
installationproceedsasfollows.
1Theinstallercheckswhetherthefollowingrequiredprerequisite
packagesareinstalledonthesystem:
2Iftherequiredsoftwareisfound,theinstallerproceeds.Otherwise,theinstallerstopsandinformsyou
thatyoumustinstallthesoftware.See“InstallingRequiredPrerequisiteSoftwareforRedHatEnterprise
Linux”onpage 18and“InstallingRequiredPrerequisiteSoftwareforLinuxSystemswithInternet
Access”
onpage 19forinstructions.
3TheinstallercheckswhetherthefollowingPerlmodulesarefound,andwhetherthecorrectversionis
installed.
RedHatEnterprise
Linux
Youmustinstallrequiredsoftware.See“InstallingRequiredPrerequisiteSoftwareforRed
HatEnterpriseLinux”onpage 18.
TheinstallerforRHELpromptsyouwhetheryouwanttoinstallothermissingmodules
fromtheInternetorfromthepackage.
IfyouhaveInternetaccess,youcanhavetheinstallerdownloadPerlmodulesfrom
CPAN.
TheinstallercaninsteadinstallPerlmodulesthatitdoesnotfindonyoursystemfrom
theinstallerpackage.
SLESandUbuntu YoumustinstallrequiredsoftwareandyoumusthaveInternetaccess.See“Installing
RequiredPrerequisiteSoftwareforLinuxSystemswithInternetAccess”onpage 19.
TheinstallerdownloadsotherPerlmodules
fromCPAN.
Platform Installation Process
Perl Perlversion5.8.8orversion5.10mustbeinstalledonyoursystem.
OpenSSL ThevSphereSDKforPerlrequiresSSLbecausemostconnectionsbetweenthesystemonwhichyou
runthecommandandthetargetvSpheresystemareencryptedwithSSL.
TheOpenSSLlibrary(libssl-develpackage)isnotincludedinthedefault
Linuxdistribution.See
“InstallingRequiredPrerequisiteSoftwareforRedHatEnterpriseLinuxonpage 18and“Installing
RequiredPrerequisiteSoftwareforLinuxSystemswithInternetAccess”onpage 19.
LibXML2 UsedforXMLparsing.ThevCLIclientrequires2.6.26orhigherversion.Ifyouhaveanolderversion
installed,pleaseupgradeto2.6.26or
higher.
Thelibxml2packageisnotincludedinthedefaultLinuxdistribution.See“InstallingRequired
PrerequisiteSoftwareforRedHatEnterpriseLinux”onpage 18and“InstallingRequiredPrerequisite
SoftwareforLinuxSystemswithInternetAccessonpage 19.
uuid Includedinuuid-develforSLES11andine2fsprogs-develforotherLinuxplatforms.Required
by
theUUIDPerlmodule.