lsport

Use the lsport command to list the ports that are on a Fibre Channel host bus adapter (HBA).

Syntax

Read syntax diagramSkip visual syntax diagramtpctoollsport-user user_name -pwd password -url url -svr server-l-fs character-header -help-qs character?-silent

Parameters and arguments

-user user_name
Specifies an IBM Spectrum Control user ID.
-pwd password
Specifies the password for the IBM Spectrum Control user ID.
-url url
Specifies the Device server. The format of the URL is system:port_number, where system represents either the host name or IP address, and port_number represents the IBM Spectrum Control Device server port.
-svr server
Specifies a system with a fibre-channel HBA. The server variable is the host name of the system.
-l
Specifies that the long version of the information is listed.
  • Worldwide port name (WWPN)
  • Name
  • Status
If you omit this parameter, only the WWPN is returned.
-fs character
Specifies the 7-bit character that separates the information in the output. If you omit this parameter, the information is separated by blank spaces.
-header
Suppresses the column headings in the output. If you omit this parameter, the column headings are included.
-help | -h | -?
Lists help information for the command.
-qs character
Specifies the 7-bit character that surrounds character strings and date stamps in the output. If you omit this parameter, character strings and date stamps are enclosed by double quotation marks (").
-silent
Suppresses all output for the command. If you omit this parameter, output is included.

Example: Listing port information

The following command lists the long version of information about the ports that are associated with the Fibre Channel HBA.
tpctool> lsport -user me -pwd mypass -url myhost:myport -svr <server> -l
The following output is returned:
WWPN             Name       Status
==================================      
210000E08B1Co9E  Marketing  Active