lstargetportfc
Use the lstargetportfc command to generate the lists of worldwide port names (WWPNs) required to set up Fibre Channel (FC) zoning and to display the current failover status of host I/O ports.
Syntax
Parameters
- -filtervalue attribute=value
- (Optional) Specifies a list of one or more filters. Only objects with a value that matches the filter attribute value are returned. If a capacity is specified, the units must also be included.
- -nohdr
- (Optional) By default, headings are displayed for each column of data in a concise style
view, and for each item of data in a detailed style view. The -nohdr
parameter suppresses the display of these headings.Note: If no data is displayed, headings are not displayed.
- -delim delimiter
- (Optional) By default in a concise view, all columns of data are space-separated. The width
of each column is set to the maximum width of each item of data. In a detailed view, each item
of data has its own row, and if the headers are displayed, the data is separated from the
header by a space. The -delim parameter overrides this behavior. Valid
input for the -delim parameter is a 1-byte character. If you enter
-delim :
on the command line, the colon character (:
) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter. - -filtervalue?
- (Optional) Displays the valid filter attributes for the lstargetportfc
command:
- port_id
- owning_node_id
- current_node_id
- host_io_permitted
- virtualized
- protocol
Description
This command generates lists of worldwide port names (WWPNs) required to set up Fibre Channel (FC) zoning. This command also displays the current failover status of host I/O ports.
This table provides the attribute values that can be displayed as output view data.
Attribute | Description |
---|---|
id | Indicates the ID of the port. |
WWPN | Indicates the WWPN of the port. The value is hexadecimal. |
WWNN | Indicates the worldwide node name (WWNN) of the port. The value is hexadecimal. |
port_id | Indicates the system port ID. The value is the same as the
lsportfc
port_id field. |
owning_node_id | Indicates the ID of the node that owns the port. Note: This node can
be offline whether the port is online or offline.
|
current_node_id | Indicates the ID of the node on which this port is active. The value is blank if the port is not active on any node |
nportid | Indicates the nportid hexadecimal value. |
host_io_permitted | Indicates whether host I/O operations can run on the port. The values
are yes and no . |
virtualized | Indicates whether it is a virtualized port. The values are
yes and no (which indicates that this port cannot be
online on any node other than the owning node). |
protocol | Indicates the protocol supported by the port. The values are
scsi and nvme. Note: Some Fibre channel adapters
and platforms do not support NVMe over Fibre Channel.
|
An invocation example
This example shows the concise output with the protocol field.
lstargetportfc
The detailed resulting output:
id WWPN WWNN port_id owning_node_id current_node_id nportid host_io_permitted virtualized protocol
1 500507680B21C5C6 500507680B00C5C6 1 1 1 071100 no no scsi
2 500507680B25C5C6 500507680B00C5C6 1 1 1 071102 yes yes scsi
3 500507680B29C5C6 500507680B00C5C6 1 1 1 071101 yes yes nvme
4 500507680B22C5C6 500507680B00C5C6 2 1 1 071500 no no scsi
5 500507680B26C5C6 500507680B00C5C6 2 1 1 071502 yes yes scsi
6 500507680B2AC5C6 500507680B00C5C6 2 1 1 071501 yes yes nvme
49 500507680B21C5C7 500507680B00C5C7 1 2 2 071400 no no scsi
50 500507680B25C5C7 500507680B00C5C7 1 2 2 071401 yes yes scsi
51 500507680B29C5C7 500507680B00C5C7 1 2 2 071402 yes yes nvme
52 500507680B22C5C7 500507680B00C5C7 2 2 2 070900 no no scsi
53 500507680B26C5C7 500507680B00C5C7 2 2 2 070901 yes yes scsi
54 500507680B2AC5C7 500507680B00C5C7 2 2 2 070902 yes yes nvme
An invocation example
This example shows the full output with the protocol field.
lstargetportfc 6
The detailed resulting output:
id 6
WWPN 500507680B2AC5C6
WWNN 500507680B00C5C6
port_id 2
owning_node_id 1
current_node_id 1
nportid 071501
host_io_permitted yes
virtualized yes
protocol nvme