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
Uninstall the vCLI Package on Linux
You can use a script included in the installation to uninstall the vCLI package.
Procedure
1 Navigate to the directory where you installed vCLI.
The default directory is /usr/bin.
2 Run the vmware-uninstall-vSphere-CLI.pl script.
The command uninstalls vCLI and the vSphere SDK for Perl.
Installing and Uninstalling vCLI on Windows
Before you can run vCLI commands from your Windows system, you must install the vCLI package and test
the installation by running a command.
Install the vCLI Package on Windows
The vCLI installation package for Windows installs vSphere SDK for Perl and vSphere CLI, but does not
include the ActivePerl runtime from ActiveState Software.
The vCLI is supported on the Windows platforms that are listed in the Release Notes.
I If you want to run ESXCLI commands included in vCLI from a Windows system, you must
have the Visual C++ 2008 redistributable for 32-bit installed on that system. Find vcredist_x86.exe for
Visual C++ 2008 and install it on your Windows system.
Prerequisites
Verify that you have ActivePerl or Strawberry Perl version 5.14 or later installed on your Windows system.
Procedure
1 Download the vCLI Windows installer package.
You can nd the installer in the Automation Tools and SDKs section of the Drivers & Tools tab of the
vSphere download page.
2 Start the installer.
3 (Optional) If prompted to remove older versions of vSphere SDK for Perl or vCLI, you can either accept
or cancel the installation, and install the vCLI package on a dierent system.
I The installer replaces both the vSphere SDK for Perl and vCLI. To keep an older version,
install this package on a dierent system.
4 Click Next in the Welcome page.
5 To install the vCLI in a nondefault directory, click Change and select an alternative directory.
The default location is C:\Program Files\VMware\VMware vSphere CLI.
6 Click Next.
7 Click Install to proceed with the installation.
The installation might take several minutes to complete.
8 Reboot your system.
If you do not reboot, path seings might not be correct on your Windows platform.
Chapter 2 Installing vCLI
VMware, Inc. 23