The OneCommand Utility User Manual
Page 196
TgtCHAPName - Target CHAP Name enclosed in quotes (string length: 1-256).
TgtSecret - Target Secret enclosed in quotes (string length: 12-16).
InitCHAPName - Initiator CHAP Name enclosed in quotes (string length: 1-256).
InitSecret - Initiator Secret enclosed in quotes (string length: 12-16).
TargetLogin
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] TargetLogin <MAC_Address> <iscsi_target_name>
[target_portal_ip <port>] [InitialR2T=<0|1>] [ImmediateData=<0|1>] [HeaderDigest=<0|1>]
[DataDigest=<0|1>] [Auth=<0|1|2> "TgtCHAPName" "TgtSecret" "InitCHAPName" "InitSecret"]
Description: 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 will be used. If the remaining options are not specified, these options are set to their default
values. When you set the Authentication Method <Auth> to a value other than "0" additional parameters
must be set to specify the initiator, target CHAP name, and secret strings. These strings should be
enclosed in quotations to avoid mangling by the Windows, Linux, Solaris, or VMware shell's parser.
If the Authentication Method is set to "One-Way CHAP (value of 1)", the "Target CHAP Name" and
"Target Secret" must also be specified.
Example:
hbacmd TargetLogin 00-11-22-33-44-55 iscsitarget Auth=1 "TgtChapName"
"TargetSecret1"
If the Authentication Method is set to "Mutual CHAP (value of 2)", all 4 values must be specified.
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).
InitialR2T - 0 = No, 1 = Yes (default: 1).
ImmediateData - 0 = No, 1= Yes (default: 1).
HeaderDigest - 0 = None, 1= CRC32C (default: 0).
DataDigest - 0 = None, 1= CRC32C (default: 0).
Auth - 0 = None, 1= One-Way CHAP, 2 = Mutual CHAP (default: 0).
TgtCHAPName - Target CHAP Name enclosed in quotes (string length: 1-256).
TgtSecret - Target Secret enclosed in quotes (string length: 12-16).
InitCHAPName - Initiator CHAP Name enclosed in quotes (string length: 1-256).
Note: If Auth is set to "1", the TgtCHAPName and TgtSecret must be specified. If Auth is
set to a value of "2", the TgtCHAPName, TgtSecret, InitCHAPName, and InitSecret
must also be specified.