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.
  1. Download the vCLI Linux installer package.
    You can find the installer in the
    Automation Tools and SDKs
    section of the
    Drivers & Tools
    tab of the vSphere download page.
  2. Log in as root.
  3. Untar the vCLI binary that you downloaded.
    Package
    Command
    64-bit
    tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.x86_64.tar.gz
    32-bit
    tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.i386.tar.gz
    A
    vmware-vsphere-vcli-distrib
    directory is created.
  4. 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
  5. Run the installer.
    sudo vmware-vsphere-cli-distrib/vmware-install.pl
  6. To accept the license terms, enter
    yes
    and press Enter.
    The installer connects to CPAN and installs prerequisite software. Establishing a connection might take a long time.
  7. On RHEL, when prompted to install precompiled Perl modules, enter
    no
    and press Enter to use CPAN.
    The installer connects to CPAN and installs prerequisite software. Establishing a connection might take a long time.
  8. 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.