Saturday, February 5, 2011

Installing CLI for Virtual Center in Windows

Installing VCLI on Windows

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.
.pl
For example:
vicfg-nas.pl --server my_esxhost --list
The system prompts you for a user name and password.

How Configure the Network card Speed in ESX Console

Configuring the speed and duplex of the ESX Server host network adapter at the service console
To configure the speed and duplex of the ESX Server host network adapter using the service console:

1.Log in to the ESX Server host as the root user at the physical console, by remote console, or by SSH.
2.Type the following command and press Enter to list the available network adapters and their current settings:

[root@server root]# esxcfg-nics -l
Name PCI Driver Link Speed Duplex Description
vmnic0 04:04.00 tg3 Up 1000Mbps Full BCM5780 Gigabit Ethernet
vmnic1 04:04.01 tg3 Up 1000Mbps Full BCM5780 Gigabit Ethernet


3.The following examples illustrate how to change the speed and duplex of an ESX Server network adapter.

Configure vmnic1 for autonegotiation:

[root@server root]# esxcfg-nics -a vmnic1

Force vmnic1 to operate at 100/Full:

[root@server root]# esxcfg-nics -s 100 -d full vmnic1

Type esxcfg-nics without parameters to get full usage information