Keyword and Value Description
Default Value
-p port ID
The ID for the iSCSI host port. The value can be 00,
01, 10, or 11.
None.
-ip IP address
The IP of the iSCSI target to be added. The format
is xx.xx.xx.xx.
None.
-port port
The TCP/IP port of the iSCSI target to be added.
The value ranges from 0 to 65535.
3260
-m recovery mode
The link recovery policy. The value can be 1 or 2.
l
The value
1
stands for the
auto
mode.
l
The value
2
stands for the
manual
mode.
2
-chap yes or no
The command enables or disables the CHAP
authentication. The value can be 0 or 1.
l
The value
0
stands for
no
. The CHAP
authentication is disabled.
l
The value
1
stands for
yes
. The CHAP
authentication is enabled.
0
-user user
The CHAP user name. It contains 4 to 25 characters,
including numbers, letters, underscores. The first
character cannot be a hyphen.
None.
-pwd password
The CHAP password. It contains 12 to 16
characters.
None.
Modes
Normal mode.
Level
Super administrator level and administrator level.
Usage Guidelines
None.
Example
Add a target to the initiator on controller
A
. The
IP
of the target is
128.12.13.25
, the
iSCSI host
port ID
is
00
, and the
TCP/IP port
is
3260
. The link recovery policy is
manual
, and the CHAP
authentication is disabled.
OceanStor: admin> addtgt -c a -p 00 -ip 128.12.13.25
OceanStor S2600 Storage System
Command Reference
9 Value-Added Service Management Commands
Issue 07 (2010-05-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
9-51