Emulex OneCommand Manager Command Line Interface User Manual (P006980-01A Version 5.2, August 2011)

OneCommand Manager Command Line Interface User Manual Page 12
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
Host Name : eng.ma.emulex.com
Mfg : Emulex Corporation
Serial No. : BG73539764
Port Number: n/a
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 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.