Emulex OneCommand Manager Command Line Interface User Manual (P006980-01A Version 5.2, August 2011)

OneCommand Manager Command Line Interface User Manual Page 51
AddRouteTableEntry
Supported by: Windows, Solaris, Linux and VMware ESX
Syntax:
hbacmd [h=host_IP[:port] | hostname[:port]] AddRouteTableEntry <MAC_Address>
<Dest_IP_Address> <Subnet_Mask> <Gateway>
Description: This command adds a new route table entry to the route table of the specified port.
Parameters:
MAC_Address - MAC address of the CNA port
Dest_IP_Address - Destination IP address to add to the route table
Subnet_Mask - Subnet Mask to add to the route table
Gateway - Gateway to add to the route table
AddTarget
Supported by: Windows, Solaris, Linux and VMware ESX
Syntax:
hbacmd [h=host_IP[:port] | hostname[:port]] AddTarget <MAC_Address> <Target_IP>
<Port> <iscsi_target_name> [ImmediateData=<0|1>] [HeaderDigest=<0|1>]
[DataDigest=<0|1>] [Auth=<0|1|2> "TgtCHAPName" "TgtSecret" "InitCHAPName"
"InitSecret"]
Description: This command 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 you specify a valid target IP
<Target_IP>, port number <Port>, and iSCSI name <iscsi_target_name>. 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 specify the "Target
CHAP Name" and "Target Secret."
Example:
hbacmd AddTarget 00-11-22-33-44-55 192.168.1.1 8000 iscsitarget Auth=1
"TgtCHAPName" "TargetSecret1"
If you set the authentication method to "Mutual CHAP (value of 2)" you must specify all 4 values.
Example:
hbacmd AddTarget 00-11-22-33-44-55 192.168.1.1 8000 iscsitarget Auth=1
"TgtCHAPName" "TargtSecret1" "InitCHAPName" "InitialSecret1"
Parameters:
MAC_Address - MAC address of the CNA port
Port - Port number of the target portal (value: 1024-65535)
iscsi_target_name - Target’s iSCSI name enclosed in quotes (string length:11-255)