The OneCommand Utility User Manual
Page 199
Example:
hbacmd AddTarget 00-11-22-33-44-55 192.168.1.1 8000 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 AddTarget 00-11-22-33-44-55 192.168.1.1 8000 iscsitarget Auth=1
"TgtCHAPName" "TargtSecret1" "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).
InitSecret - Initiator Secret enclosed in quotes (string length: 12-16).
SetTargetLoginProperties
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] SetTargetLoginProperties <MAC_Address>
<iscsi_target_name> [InitialR2T=<0|1>] [ImmediateData=<0|1>] [HeaderDigest=<0|1>]
[DataDigest=<0|1>] [Auth=<0|1|2> "TgtCHAPName" "TgtSecret" "InitCHAPName" "InitSecret"]
Description: Sets the login and authentication properties associated with a specific target. This
command requires that a valid iSCSI target name <iscsi_target_name> is specified. If some of the
remaining properties are not specified, these options are set to their default values. However, if no
properties are changed, an error is generated. At least one property must be altered for this command to
return successfully. 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 SetTargetLoginProperties 00-11-22-33-44-55 iscsitarget Auth=1 "TgtCHAPName"
"TargetSecret1"
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.