Emulex OneCommand Manager Application User Manual (P006979-01A Version 5.2, August 2011)

The OneCommand Manager User Manual Page 236
Parameters:
MAC_Address - MAC address of the CNA port
Target_IP - IP address of the target portal
Port - Port number of the target portal
TargetLogin
Supported by: Windows, Solaris, Linux and VMware ESX
Syntax:
hbacmd [h=host_IP[:port] | hostname[:port]] TargetLogin <MAC_Address>
<iscsi_target_name> [target_portal_ip <port>] [ImmediateData=<0|1>]
[HeaderDigest=<0|1>] [DataDigest=<0|1>] [Auth=<0|1|2> "TgtCHAPName" "TgtSecret"
"InitCHAPName" "InitSecret"]
Description: This command logs in to a target. The iSCSI target name <iscsi_target_name> is the only
mandatory option. The target's portal <target_portal> and port <port> information are optional and if they
are not provided a default target portal is used. If you do not specify the remaining options, these options
are set to their default values. When you set the authentication method <Auth> to a value other than 0,
you must set additional parameters to specify the initiator CHAP name, target CHAP name, and initiator
and target secret strings. Each string should be enclosed in quotations to avoid mishandling by the
Windows, Linux, Solaris, or VMware shell's parser.
If you set the authentication method to "One-Way CHAP (value of 1)", you must also specify the "Target
CHAP Name" and "Target Secret."
Example:
hbacmd TargetLogin 00-11-22-33-44-55 iscsitarget Auth=1 "TgtChapName"
"TargetSecret1"
If the you set the authentication method to "Mutual CHAP (value of 2)", you must specify all 4 values.
Example:
hbacmd TargetLogin 00-11-22-33-44-55 iscsitarget Auth=2 "TgtChapName"
"TargetSecret1" "InitCHAPName" "InitialSecret1"
Parameters:
MAC_Address - MAC address of the CNA port
iscsi_target_name - Target’s iSCSI name enclosed in quotes (string length:11-255)
Port - Port number of the target portal (value: 1024-65535)
ImmediateData -
0 = No
1= Yes (default: 1)
HeaderDigest -
0 = None
1= CRC32C (default: 0)
DataDigest -
0 = None