
VMware, Inc. 19
Chapter 2 Installing vCLI
vSphereSDKforPerlutilityapplications–/usr/lib/vmware-vcli/apps
vSphereSDKforPerlsamplescripts–/usr/share/doc/vmware-vcli/samples
SeethevSphereSDKforPerldocumentationforareferencetoallutilityapplications.AfteryouinstallvCLI,
youcantesttheinstallationbyrunningavCLIcommandorvSphereSDKforPerlutilityapplicationfromthe
commandprompt.
Running Commands on Linux
Afterinstallation,youcanrunvCLIcommandsandvSphereSDKforPerlutilityapplicationsatthecommand
prompt.
To run a vCLI command on Linux
1Openacommandprompt.
2 (Optional)ChangetothedirectorywhereyouinstalledthevCLI(defaultis/usr/bin).
3Runthecommand,includingtheconnectionoptions.
<command> <conn_options> <params>
Specifyconnectionoptionsinaconfigurationfileorpassthemonthecommandline.Theextension.pl
isnotrequiredonLinux.Forexample:
esxcli --server <server> --username snow\-white --password dwarf\$ network ip interface list
vicfg-mpath --server <server> --username snow\-white --password dwarf\$ --list
Thesystempromptsyouforausernameandpasswordforthetargetserver.
SeeTable 3‐2,“vCLIConnectionOptions,”onpage 28foracompletelistofconnectionoptions.
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
BeforeyoucanrunvCLIcommandsfromyourWindowsystem,youmustinstallthevCLIpackageandtest
theinstallationbyrunningacommand.
ThevCLIinstallationpackageforWindowsincludestheActivePerlruntimefromActiveStateSoftwareand
requiredPerlmodulesandlibraries.ThevCLIissupportedonthefollowingWindows
platforms:
WindowsVistaEnterpriseSP132bitand64bit
Windows200864bit
Windows732bitand64bit
To install the vCLI Package on Windows
1 DownloadthevCLIWindowsinstallerpackage.
YoucanfindtheinstallerontheVMwareCommunitiespage.
I
MPORTANTIfyouwanttorunESXCLIcommandsincludedinvCLIfromaWindowssystem,youmusthave
theVisualC++2008redistributablefor32bitinstalledonthatsystem.Findvcredist_x86.exeforVisualC++
2008andinstallitonyourWindowssystem.
Komentarze do niniejszej Instrukcji