The OneCommand Utility User Manual
Page 197
InitSecret - Initiator Secret enclosed in quotes (string length: 12-16).
TargetLogout
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] TargetLogout <MAC_Address>
<iscsi_target_name> <TSIH | <ISID_Qual Target_IP>>Description: Logout of a session. The required
fields are the iSCSI target name <iscsi_target_name> and either the TSIH <TSIH> of the session or the
session's ISID qualifier <ISID_Qual> and the target's IP address <Target_IP>.
Parameters:
MAC_Address - The MAC address of the CNA port.
iscsi_target_name - Target’s iSCSI name enclosed in quotes (string length:11-255).
TSIH - TSIH value of the session to log out (values: 1-65535).
ISID_Qual - ISID qualifier of the session to logout (value: 0-65535)
Target_IP - The Target's IP address.
AddTargetPortal
Supported by: Windows, Solaris SFS, Linux and VMware ESX Server
Syntax: hbacmd [h=host_IP[:port] | hostname[:port]] AddTargetPortal <MAC_Address> <Target_IP>
<Port> [InitialR2T=<0|1>] [ImmediateData=<0|1>] [HeaderDigest=<0|1>] [DataDigest=<0|1>]
[Auth=<0|1|2> "TgtCHAPName" "TgtSecret" "InitCHAPName" "InitSecret"]
Description: Adds a new SendTarget Portal for the initiator and runs a target discovery once the
SendTarget Portal is created. This command requires that a valid portal IP address <Target_IP> and a
valid port number <Port> are 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.
Example:
hbacmd AddTargetPortal 00-11-22-33-44-55 10.0.0.1 8000 Auth=1 "TgtCHAPName"
"TargetSecret1"
If the Authentication Method is set to "Mutual CHAP (value of 2)", all 4 values must be specified.
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.
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.
Note: You must specify either the TSIH value or the ISID qualifier. If ISID qualifier is
specified you must also specify the Target’s ID address.