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

 lstargetportfc    [  -filtervalue  attribute=value  ]   [  -nohdr  ]   [  -delim  delimiter  ]     [  -filtervalue?  ]

Parameters

-filtervalueattribute=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.
Note: Some filters allow the use of a wildcard when you enter the command. The following rules apply to the use of wildcard characters when you use the CLI:
  • The wildcard character is an asterisk (*), which must be the first or last character in the string.
  • The command can contain a maximum of one wildcard.
  • When you use a wildcard, enclose the filter entry within double quotation marks ("").
-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

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.

lstargetportfc output provides the attribute values that can be displayed as output view data.
Table 1. lstargetportfc output
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 lsportfcport_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).

An invocation example

This example shows a single I/O group with two nodes. One 2-port FC card is installed on each node, and the I/O group's fctargetportmode setting is set to disabled.

lstargetportfc

The detailed resulting output:

id WWPN             WWNN             port_id owning_node_id current_node_id nportid host_io_permitted     virtualized
1  500507680140BADD 500507680100BADD 1       1              1               0E2411  yes                   no
2  500507680141BADD 500507680100BADD 1       1                              000000  no                    yes
3  500507680130BADD 500507680100BADD 2       1              1               0E2412  yes                   no
4  500507680131BADD 500507680100BADD 2       1                              000000  no                    yes
5  500507680140BADE 500507680100BADE 1       2              2               0E2413  yes                   no
6  500507680141BADE 500507680100BADE 1       2                              000000  no                    yes
7  500507680130BADE 500507680100BADE 2       2              2               0E2414  yes                   no
8  500507680131BADE 500507680100BADE 2       2                              000000  no                    yes

An invocation example

This example shows a single I/O group with two nodes. One 2-port FC card is installed on each node, and the I/O group's fctargetportmode setting is set to transitional.

lstargetportfc

The detailed resulting output:

id WWPN             WWNN             port_id owning_node_id current_node_id nportid host_io_permitted     virtualized
1  500507680140BADD 500507680100BADD 1       1              1               0E2411  yes                   no
2  500507680141BADD 500507680100BADD 1       1              1               0E2412  yes                   yes
3  500507680130BADD 500507680100BADD 2       1              1               0E2413  yes                   no
4  500507680131BADD 500507680100BADD 2       1              1               0E2414  yes                   yes
5  500507680140BADE 500507680100BADE 1       2              2               0E2415  yes                   no
6  500507680141BADE 500507680100BADE 1       2              2               0E2416  yes                   yes
7  500507680130BADE 500507680100BADE 2       2              2               0E2417  yes                   no
8  500507680131BADE 500507680100BADE 2       2              2               0E2418  yes                   yes