Install the vCLI
Package on a Linux System with Internet Access
You can install
the vCLI package and run a command to verify that installation was successful.
Verify that you have installed
the required prerequisite software.
- Download the vCLI Linux installer package.You can find the installer in theAutomation Tools and SDKssection of theDrivers & Toolstab of the vSphere download page.
- Log in as root.
- Untar the vCLI binary that you downloaded.PackageCommand64-bittar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.x86_64.tar.gz32-bittar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.i386.tar.gzAvmware-vsphere-vcli-distribdirectory is created.
- If your server uses a proxy to access the Internet, and if your http:// and ftp:// proxy were not set when you installed prerequisite software, set them now.export http_proxy=<proxy_server>:port export ftp_proxy=<proxy_server>:port
- Run the installer.sudo vmware-vsphere-cli-distrib/vmware-install.pl
- To accept the license terms, enteryesand press Enter.The installer connects to CPAN and installs prerequisite software. Establishing a connection might take a long time.
- On RHEL, when prompted to install precompiled Perl modules, enternoand press Enter to use CPAN.The installer connects to CPAN and installs prerequisite software. Establishing a connection might take a long time.
- Specify an installation directory, or press Enter to accept the default, which is/usr/bin.A complete installation process has the following result.
- A success message appears.
- The installer lists different version numbers for required modules, if any.
- The prompt returns to the shell prompt.
If you accepted the defaults
during installation, you can find the installed software in the following
locations.
- vCLI scripts –/usr/bin
- vSphere SDK for Perl utility applications –/usr/lib/vmware-vcli/apps
- vSphere SDK for Perl sample scripts –/usr/share/doc/vmware-vcli/samples
See the vSphere SDK for Perl
documentation for a reference to all utility applications. After you install
vCLI, you can test the installation by running a vCLI command or vSphere SDK
for Perl utility application from the command prompt.