chiscsiportauth
Use the chiscsiportauth command to set or configure the iSCSI Initiator authentication or authorization information that is used to connect to the backend IBM® Cloud storage.
Syntax
Parameters
- -src_ip ip_address
- (Required if you do not specify -src_port_id and -node) The IPv4 or IPv6 address of the system initiator port for which the credentials are configured. You cannot specify this value with -src_port_id or -node.
- -src_port_id id
- (Required if you do not specify -src_ip) The source port identifier of the initiator port for which the credentials are configured. This value is the numeric ID of the Ethernet port starting with 1 up to the maximum ports in the system. You cannot specify this value with -src_ip, and you must specify this value with -node.
- -node id | name
- (Required if you do not specify -src_ip) Specify the node ID or name for which the credentials are configured. You cannot specify this value with -src_ip, and you must specify this value with -src_port_id.
- -iqn iqn
- (Required) The iSCSI Qualified name (IQN) used to connect to the target storage. This value is an alphanumeric with a maximum of 256 characters.
- -username user_name
- (Required) The username used to authenticate to the target storage. This value is an alphanumeric with a maximum of 32 characters.
- -chapsecret chap_secret
- (Required) The chapsecret used to authenticate to the target storage. This value is an alphanumeric with a maximum of 32 characters.
Description
This command is used to set or configure the iSCSI Initiator authentication or authorization
information that is used to connect to the backend IBM Cloud
storage. Before you run this command, the system authentication must be set to ip
with the svctask chsystem -force ip command.
An invocation example
svctask chiscsiportauth -src_ip 192.168.4.21 -iqn iqn.1986.ibm.com:cluster1.node1 -username marvel -chapsecret phantom
The resulting output:
No feedback
