Addtarget – Dell Emulex Family of Adapters User Manual

Page 374

Advertising
background image

OneCommand Manager Command Line Interface Version 10.2 User Manual

P010067-01A Rev. A

5. CLI Client Command Descriptions

iSCSI Commands

374

AddTarget

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 IPv4 or IPv6 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. 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 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” (<Auth>=2), you must

specify all four values. For example:

hbacmd AddTarget 00-11-22-33-44-55 192.168.1.1 8000

iscsitarget Auth=1 "TgtCHAPName" "TargtSecret1"

"InitCHAPName" "InitialSecret1"

Supported By

Linux, Solaris, VMware ESXi, and Windows

Syntax

AddTarget <MAC_Address> <Target_IP> <Port> <iscsi_target_name>

[ImmediateData=<0|1>] [HeaderDigest=<0|1>] [DataDigest=<0|1>]

[Boot=<0|1>] [Login=<0|1>] [Auth=<0|1|2> "TgtCHAPName" "TgtSecret"

"InitCHAPName" "InitSecret"]

Parameters

MAC_Address

The MAC address of an iSCSI port.

Target_IP

IP address of the target portal. You can specify an IPv4 or IPv6

IP address.

Port

Port number of the target portal (value: 102–65535).

iscsi_target_name

Target’s iSCSI name enclosed in quotes (string length: 11–255).

ImmediateData

0 = No

1 = Yes (default)

HeaderDigest

0 = None (default)

1 = CRC32C

DataDigest

0 = None (default)

1 = CRC32C

Advertising