American Megatrends MAN-STOR-ITX27-CLI Manuel D’Utilisation

Page de 60
Chapter Two: Command Set 
 
15
Command 
Argument 
Description 
-c/--containername <containername> 
-m/--mode {0/1/2} 
For example: set –t lunwritecachemode –v v1 –c c1 
–m 0 iscsi 
 
0 – Write through 
1 – Write back 
add iscsi 
-t/--type {processor} 
-n/--targetname <target suffix> 
Adds the processor to the specified 
target (used for backup). 
remove iscsi 
-t/--type {processor} 
-n/--targetname <target suffix> 
Removes the processor from the 
specified target. 
get iscsi 
-t/--type {statistics} 
For example: get –t statistics iscsi 
Gets the iSCSI statistics, for 
example, No. of iSCSI PDU sent 
and received, payload, and 
login/session failures. 
get iscsi 
-t/--type {portalstatus} 
-p/--ipaddress <ipaddress> 
Gets the iSCSI Portal Status. 
get iscsi 
-t/--type {servicestatus} 
Gets the iSCSI service status. 
(Active/Inactive) 
add iscsi 
-t/--type {lun} 
-v/--volumename <volume name> 
-c/--containername <container name> 
-n/--targetname <targetsuffix> 
Adds the LUN to the specified 
target. 
remove iscsi 
-t/--type {lun} 
-v/--volumename <volume name> 
-c/--containername <container name> 
-n/--targetname <target suffix> 
Removes the LUN from the 
specified target. 
get iscsi 
-t/--type {sessions} 
For example: get –t sessions iscsi 
Gets the current sessions details 
including session id. 
remove iscsi 
-t/--type {session} 
-s/--sessionid <session id> 
Terminates the session with the 
given ID. To avoid automatic 
reconnection by the initiator, you 
will need to change the security 
settings for that target prior to 
termination. 
list iscsi 
-t/--type {tgt} 
Gets the List of Targets available. 
list iscsi 
-t/--type {lun} 
-n/--targetname <target suffix> 
Gets the available LUNs in the 
given target. 
get iscsi 
-t/--type {tgtauthsettings} 
-n/--targetname <target suffix> 
Gets the Authorization settings for 
the target. 
set iscsi 
-t/--type {peersecret} 
-i/--initiatorname < initiatorname. (Default : none)>  
-s/--peersecret 
For example: set –t peersecret –I iqn.1991-
10.com.microsoft:newbox –s iscsi 
Sets the peer secret for the initiator. 
You will be prompted to enter this 
twice. 
set iscsi 
-t/--type {tgtauthsettings} 
-n/--targetname <targetsuffix> 
-u/--username <user name ‘none’ for default > 
-r/--secretname <user password ‘none’ for default > 
-i/--initiatorname <initiator name – ‘none’ for 
default> 
Sets the Authorization settings for 
the target. The secret name should 
be at least 12 characters in size 
This will give exclusive access to 
the LUN for the specified user and 
initiator for maximum security. 
get iscsi 
-t/--type {lun} 
-n/--targetname <target suffix> 
-v/--volumename<volumename> 
-c/--containername<containername> 
-i/--info 
Gives the LUN's Information for 
the specified target. 
get iscsi 
-t/--type {tgtoptimizations} 
-n/--targetname <target name> 
Gives the Target's Optimization 
settings (i.e. whether multiple 
initiator logins are supported). 
set iscsi 
-t/--type {tgtoptimizations} 
-n/--targetname <target suffix> 
-p/ --multiplesession {y/n} 
-g/--nopinterval < nop ping internal > 
Sets the Target's Optimization 
settings to allow/disallow multiple 
initiators logging in to a target 
simultaneously.