Targetlogin – Dell Emulex Family of Adapters User Manual

Page 392

Advertising
background image

OneCommand Manager Command Line Interface Version 10.2 User Manual

P010067-01A Rev. A

5. CLI Client Command Descriptions

iSCSI Commands

392

TargetLogin

This command logs in to a target. The iSCSI target name <iscsi_target_name> is the

only mandatory option. The <target_portal> and <port> information are optional and

if they are not provided a default target portal is used. 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 TargetLogin 00-11-22-33-44-55 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 TargetLogin 00-11-22-33-44-55 iscsitarget Auth=2

"TgtChapName" "TargetSecret1" "InitCHAPName" "InitialSecret1"

Supported By

Linux, Solaris, VMware ESXi, and Windows

Syntax

TargetLogin <MAC address> <Target Name> [<Target IP> <Port>]

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

2> ["TgtCHAPName"] ["TgtSecret"] ["InitCHAPName"] ["InitSecret"]]

Parameters

MAC_Address

The MAC address of an iSCSI port.

target_name

The target’s iSCSI name enclosed in quotes (string length: 11–255

characters).

Target IP

Target IP Address. You can specify an IPv4 or IPv6 Target IP

address.

Port

The port number of the target portal. The possible values are

1024–65535.

HeaderDigest

0 = None (default)

1 = Uses CRC32C checksum

ImmediateData

0 = No

1 = Yes (default) for appending solicited data to a command.

DataDigest

0 = None (default)

1 = CRC32C checksum

Auth

0 = None (default)

1 = One-Way CHAP

2 = Mutual CHAP

Advertising