Dell Emulex Family of Adapters User Manual

Page 1330

Advertising
background image

OCM for VMware vCenter Version 10.2 User Manual

P009805-01A Rev. A

11. Using OneCommand Manager for VMware vCenter Command Line Interface

1330

11. Using OneCommand Manager for VMware

vCenter Command Line Interface

The Command Line Interface (CLI) client component of OneCommand Manager for

VMware vCenter is installed as part of OneCommand Manager for VMware vCenter

installation.
OneCommand Manager for VMware vCenter CLI can manage Emulex adapters in

systems with VMware ESXi 5.0, 5.1, and 5.5 environments.
In order to run any of the CLI commands you must run the elxvcpcmd.exe file, which is

available in the OneCommand Manager for VMware vCenter installation directory

(which is by default C:\Program Files\Emulex). This component is intended for use in

scripted operations within batch files. Each time you run this script from the command

line, a single operation is performed.
Most operations retrieve information about an entity on the storage area network

(SAN) and show that information on the console.
OneCommand Manager for VMware vCenter CLI runs only in TCP/IP mode.
Most of the CLI client commands require one or more additional parameters that

specify the nature of the command. For FC and FCoE ports, the world wide port name

(WWPN) of the adapter must be specified.
To run a command at the cluster level, use:

elxvcpcmd.exe v=<vcenter server> u=<vc_username> p=<vc_pwd>

c=<clustername> <ocm_cmd> [<ocm_cmd_arg>...]

For example, run the following command to export SAN information for a cluster:

elxvcpcmd.exe v=10.192.203.162 u=Administrator p=password

c=ih123vid34 exportsaninfo [csv]

To run a command at the host level, use:

elxvcpcmd.exe v=<vcenter server> u=<vc_username> p=<vc_pwd>

h=<esx_host> <ocm_cmd> [<ocm_cmd_arg>...]

For example, run the following command to display the port attributes for the adapter

with the specified WWPN:

elxvcpcmd.exe v=10.120.121.122 u=Administrator p=password

h=10.120.121.123 portattributes 10:00:00:00:C9:39:6C:9D

For NIC ports, the MAC address must be specified.
For example, run the following command to display the port attributes for the UCNA

port with the specified MAC address:

elxvcpcmd.exe v=10.120.121.122 u=Administrator p=password

h=10.120.121.123 portattributes 00-11-22-33-44-55

For help purposes only, all commands are grouped together.
For more information about the group help command, see page 188. For more

information about commands in each group, see Table 11-1 on page 189.

Advertising