The OneCommand Utility User Manual
Page 198
Target_IP - IP address of the Target Portal.
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).
RemoveTargetPortal
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] RemoveTargetPortal <MAC_Address> <Target_IP>
<Port>
Description: Removes the SendTarget Portal containing the target IP <Target_IP> and the port <Port>
from the list of portals for the specified initiator.
Parameters:
MAC_Address - MAC address of the CNA port.
Target_IP - IP address of the Target Portal.
Port - Port number of the Target Portal (value: 1024-65535).
AddTarget
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] AddTarget <MAC_Address> <Target_IP> <Port>
<iscsi_target_name> [InitialR2T=<0|1>] [ImmediateData=<0|1>] [HeaderDigest=<0|1>]
[DataDigest=<0|1>] [Auth=<0|1|2> "TgtCHAPName" "TgtSecret" "InitCHAPName" "InitSecret"]
Description: Adds a target to the list of targets seen by the initiator and logs into the target once it has
been successfully created. This command requires that a valid target IP <Target_IP>, port number
<Port>, and iSCSI name <iscsi_target_name> are all specified. 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.
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.