Before you can run vCLI commands on your Window system, you have to install the vCLI package and test the installation by running a command.
The vCLI installation package for Windows includes the ActivePerl runtime from ActiveState Software and required Perl modules and libraries. The vCLI is supported on the following Windows platforms:
Windows 2003 32 bit
Windows XP SP3 32 bit
Windows Vista Enterprise SP1 32 bit
Windows 2008 64 bit
To install the vCLI Package on Windows
1 Download the vCLI Windows installer package. You can find the installer on the VMware Communities 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 install the vCLI package on a different system.
4 Click Next in the Welcome page.
5 To install the vCLI in a nondefault directory, click Change and select the directory. The default location is C:\Program Files\VMware\VMware vCLI.
6 Click Next.
7 Click Install to proceed with the installation. The installation might take several minutes to complete.
8 Reboot your system. Without reboot, path settings might not be correct on your Windows platform. After you install the vCLI and reboot your system, you can test the installation by running a command from
the Windows command prompt.
To run a vCLI command on Windows
1 Open a command prompt.
2 Navigate to the directory in which the vCLI is installed.
cd C:\Program Files\VMware\VMware vSphere CLI\bin
3 Run the command, passing in connection options and other options.
On Windows, the extension .pl is required for most commands, but not for esxcli.
For example:
vicfg-nas.pl --server my_esxhost --list
The system prompts you for a user name and password.
No comments:
Post a Comment