User's Guide

The OneCommand Manager User Manual Page 230
Description: This command adds a new SendTarget Portal for the initiator and runs a target discovery
once the SendTarget Portal is created. This command requires that you specify a valid portal IP address
<Target_IP> and a valid port number <Port>. 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 set the "Target
CHAP Name" and "Target Secret."
Example:
hbacmd AddTargetPortal 00-11-22-33-44-55 10.0.0.1 8000 Auth=1 "TgtCHAPName"
"TargetSecret1"
If you set the authentication method to "Mutual CHAP (value of 2)", You must specify all 4 values.
Example:
hbacmd AddTargetPortal 00-11-22-33-44-55 10.0.0.1 8000 Auth=2 "TgtChapName"
"TargetSecret1" "InitCHAPName" "InitialSecret1"
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)
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)
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.