Use the lsiscsistorageportcandidate command to display a concise or detailed list of information about the candidate Internet Small Computer Systems Interface (iSCSI) target controller iSCSI Qualified Name (IQN) that is specified with the target IP from the specified initiator source ports.
Specifies the ID or name of a node in the system. The value must be an alphanumeric string.
Attribute | Description |
---|---|
id | Indicates the row ID for the discovery output. Enter the detectiscsistorageportcandidate command before you use the lsiscsistorageportcandidate command. Display the concise view first to show one row per IQN. Use a row ID from the concise view to specify the detailed view of the lsiscsistorageportcandidatelsiscsistorageportcandidate-rowid command. The detailed view displays the list of discovered target IP addresses for the IQN. |
src_port_id | Indicates the source port ID. The value is a number 1 - 8. |
target_ipv4 | Indicates the target IPv4 address. |
target_ipv6 | Indicates the target IPv6 address. |
target_iscsiname | Indicates the (discovered) IQN that uses the target controller. The value is an alphanumeric string that is 256 characters long. |
iogroup_list | Indicates a colon-separated list of discovery
result codes: The value must be an alphanumeric string of up to 32
characters. This field cannot be blank. The values are 0 and 1:
Note: The value - (dash) indicates that the
I/O group is not valid or is not present in the system.
|
status | Indicates whether discovery was successful. The status is one of the following
values:
|
configured | Indicates whether the discovered target IQN has any established sessions with source ports or target ports. The values are yes and no (default). |
site_id | Indicates the site ID (if the nodes that are being discovered belong to a site). This attribute applies to HyperSwap systems. |
site_name | Indicates the site name (if the nodes that are being discovered belong to a site). This attribute applies to HyperSwap systems. |
SendTargets Portal IPs | Provides list of all the (Maximum 32) discovered Target Portal IPs by using the detectiscsistorageportcandidate command. |
detectiscsistorageportcandidate –srcportid 1 -targetip 10.10.10.1
To view the output, specify the following command:
lsiscsistorageportcandidate
The following concise resulting output is displayed:
id src_port_id target_ipv4 target_ipv6 target_iscsiname iogroup_list configured status site_id site_name 0 1 10.10.10.1 IQN1 1:1:1:1 no Full
detectiscsistorageportcandidate -iogrp 0 –srcportid 1 -targetip IP2 –username superuser –chapsecret password2A tgt_user_name and target_chap value are used. This system has only two I/O groups, 0 and 3.
To view the output, specify the following command:
lsiscsistorageportcandidate
The following concise resulting output is displayed:
id src_port_id target_ipv4 target_ipv6 target_iscsiname iogroup_list configured status site_id site_name 0 1 IP2 IQN1 1:-:-:0 no Full 1 1 IP2 IQN2 1:-:-:0 no Full 2 1 IP2 IQN3 1:-:-:0 no Full
detectiscsistorageportcandidate –srcportid 1 -targetip 10.10.10.1
The concise view has one row per IQN as shown in the first concise view example. Each row ID from the concise view identifies an iSCSI qualified name (IQN). To view detailed information for the IQN, specify the row ID (id):
lsiscsistorageportcandidate 0
The resulting output lists details of the discovered portal IP addresses for the IQN:
SendTargets Portal IPs 10.10.10.1 10.10.10.2 fe:65::00:01 fe:65::00:02