User's Guide

The OneCommand Manager User Manual Page 188
You can use the following syntax for issuing CIM-based commands:
A>
hbacmd <h=IPAddress[: port]> m=cim [u=userid] [p=password] [n=root/emulex]
command <WWPN>
B>
hbacmd <h=IPAddress [: port]> <m=cim> <cmd>
Before issuing the syntax B, do one of the following:
Add the host IP with CIM credentials using the AddHost command.
For example:
hbacmd <m=cim> AddHost <IPAddress> [u=userid] [p=password] [n=namespace]
Or
Set the default CIM credentials using the SetCimCred command.
For example:
hbacmd SetCimCred <username> <password> <namespace> <portnum>
For example, run the following command to display a list of adapters managed for a specified host using
CIM interface:
In Windows:
C:\Program Files\Emulex\Util\OCManager>hbacmd h=10.192.113.128 m=cim u=root
p=root n=root/emulex listhbas
The output displayed is similar to the following:
Manageable HBA List
Port WWN : 10:00:00:00:c9:6b:62:2b
Node WWN : 20:00:00:00:c9:6b:62:2b
Fabric Name: 00:00:00:00:00:00:00:00
Flags : 00000000
Note: This command sets only the CIM credentials. Once you have set these, subsequent
HbaCmd commands do not require you specify the CIM credentials on the command
line.
Note: If you specify the command with the discovery method "m=cim" and you do not
specify the CIM credentials (userid, password, or namespace) the default value for
the missing CIM credential is obtained in the following order:
(1) The information entered using the addhost command is looked up.
(2) If no values exist, the information entered using the setcimcred command is used.
(3) If no values exist, the following credentials are used:
username = root,
password = root,
namespace = root/emulex
portnum = 5988
Note: The OneCommand Manager CLI running on VMware ESX 4.0/4.1 or ESXi 5.0
COS does not support management of adapters using the CIM interface.
Note: In Linux, VMware and Solaris, you cannot use hbacmd as a CIM client.