6.5
Table Of Contents
- Getting Started with vSphere Command-Line Interfaces
- Contents
- About This Book
- Managing vSphere with Command-Line Interfaces
- Installing vCLI
- Running Host Management Commands in the ESXi Shell
- Running vCLI Host Management Commands
- Overview of Running vCLI Host Management Commands
- Protecting Passwords
- Authenticating Through vCenter Server and vCenter Single Sign-On
- Authenticating Directly to the Host
- Trust Relationship Requirement for ESXCLI Commands
- Common Options for vCLI Host Management Command Execution
- Using vCLI Commands in Scripts
- Run Host Management Commands from a Windows System
- Run Host Management Commands from a Linux System
- Running DCLI Commands
- Index
Procedure
1 Untar the vCLI binary that you downloaded.
tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.XXXX.x86_64.tar.gz
A vmware-vsphere-vcli-distrib directory is created.
2 Log in as superuser and run the installer.
/<location>/sudo vmware-vsphere-cli-distrib/vmware-install.pl
3 To accept the license terms, enter yes and press Enter.
4 To install Perl modules locally, enter yes and press Enter.
5 Specify an installation directory, or press Enter to accept the default, which is /usr/bin.
A complete installation process has the following result.
n
A success message appears.
n
The installer lists dierent version numbers for required modules, if any.
n
The prompt returns to the shell prompt.
If you accepted the defaults during installation, you can nd the installed software in the following
locations.
n
vCLI scripts – /usr/bin
n
vSphere SDK for Perl utility applications – /usr/lib/vmware-vcli/apps
n
vSphere SDK for Perl sample scripts – /usr/share/doc/vmware-vcli/samples
What to do next
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.
Installing vCLI on Linux Systems with Internet Access
Before you can install the vCLI package on a Linux system with Internet access, that system must meet
specic prerequisites.
n
Internet access - You must have Internet access when you run the installer because the installer uses
CPAN to install prerequisite Perl modules.
n
Development Tools and Libraries - You must install the Development Tools and Libraries for the Linux
platform that you are working with before you install vCLI and prerequisite Perl modules.
n
Proxy seings - If your system is using a proxy for Internet access, you must set the http:// and ftp://
proxies, as follows:
export http_proxy=<proxy_server>:port
export ftp_proxy=<proxy_server>:port
Installing Prerequisite Software for Linux Systems with Internet Access
If the prerequisite software is not installed, the installer stops and requests that you install it.
Installation of prerequisite software depends on the platform that you are using. See the Release Notes for the
supported versions of each Linux platform.
Getting Started with vSphere Command-Line Interfaces
20 VMware, Inc.