The OneCommand Utility User Manual
Page 200
If the Authentication Method is set to "Mutual CHAP (value of 2)", all 4 values must be specified.
Example:
hbacmd SetTargetLoginProperties 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).
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).
RemoveTarget
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] RemoveTarget <MAC_Address>
<iscsi_target_name>
Description: Removes the target with the specified iSCSI target name <iscsi_target_name>.
Parameters:
MAC_Address - MAC address of the CNA port.
iscsi_target_name - Target’s iSCSI name enclosed in quotes (string length:11-255).
ShowiSNSServer
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] ShowiSNSServer <MAC_Address>
Description: Shows the currently configured Internet Storage Name Server. This command also
indicates whether or not iSNS discovery is enabled.
Parameters:
MAC_Address - MAC address of the CNA port.
DiscoveriSNSServer
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] DiscoveriSNSServer <MAC_Address>
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.