Addtargetportal – Dell Emulex Family of Adapters User Manual
Page 375
OneCommand Manager Command Line Interface Version 10.2 User Manual
P010067-01A Rev. A
5. CLI Client Command Descriptions
iSCSI Commands
375
AddTargetPortal
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 IPv4 or IPv6 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. 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” (<Auth>=1), you
must also specify the “Target CHAP Name” and “Target Secret.” For 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” (<Auth>=2), you must
specify all four values. For example:
hbacmd AddTargetPortal 00-11-22-33-44-55 10.0.0.1 8000 Auth=2
"TgtChapName" "TargetSecret1" "InitCHAPName" "InitialSecret1"
You must specify either the TSIH value or the ISID qualifier. If you specify the ISID
qualifier, you must also specify the Target’s ID address.
Supported By
Linux, Solaris, VMware ESXi, and Windows
Boot
This optional parameter specifies whether the added target is a
boot device:
0 = Added target is not a boot device
1 = Added target is a boot device
Login
This optional parameter specifies whether to log in to the target
after it has been added:
0 = Do not log in to the target
1 = Specify log in to the target
If the Login parameter is omitted, the default is 1.
Auth
0 = None (default)
1 = One-Way CHAP
2 = Mutual CHAP
TgtCHAPNam
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).