lszfcp - List zfcp devices

6.10 LPAR mode z/VM guest

Use the lszfcp command to gather information about zfcp devices, ports, units, and their associated class devices from sysfs and to display it in a summary format.

lszfcp syntax

Read syntax diagramSkip visual syntax diagramlszfcp -H-P-D-Z-V-e -b <device_bus_id>-p <port_name>-l <lun>-a-m-mm-s /sys-s <mount_point>

Where:

-H or --hosts
shows information about hosts.
-P or --ports
shows information about ports.
-D or --devices
shows information about SCSI devices.
-Z or --modparms
lists zfcp module parameters with a scope of the device driver.
-V or --verbose
shows sysfs paths of associated class and bus devices.
-e or --extended
generates extended output.
-b or --busid <device_bus_id>
limits the output to information about the specified device.
-p or --wwpn <port_name>
limits the output to information about the specified port name.
-l or --lun <lun>
limits the output to information about the specified LUN.
-a or --attributes
shows the main attributes of the specified objects.
-m or --moreattrs
shows more attributes of the specified objects.

Specify twice (-mm) to show even more attributes for SCSI devices.

-s or --sysfs <mount_point>
specifies the mount point for sysfs.
-v or --version
displays version information.
-h or --help
displays a short help text. To view the man page, enter man lszfcp.

Examples

  • This command displays information about all available hosts, ports, and SCSI devices.
    # lszfcp -H -D -P
    0.0.3d0c host0
    0.0.500c host1
    ...
    0.0.3c0c host5
    0.0.3d0c/0x500507630300c562 rport-0:0-0
    0.0.3d0c/0x50050763030bc562 rport-0:0-1
    0.0.3d0c/0x500507630303c562 rport-0:0-2
    0.0.500c/0x50050763030bc562 rport-1:0-0
    ...
    0.0.3c0c/0x500507630303c562 rport-5:0-2
    0.0.3d0c/0x500507630300c562/0x4010403200000000 0:0:0:1077035024
    0.0.3d0c/0x500507630300c562/0x4010403300000000 0:0:0:1077100560
    0.0.3d0c/0x50050763030bc562/0x4010403200000000 0:0:1:1077035024
    0.0.3d0c/0x500507630303c562/0x4010403200000000 0:0:2:1077035024
    0.0.500c/0x50050763030bc562/0x4010403200000000 1:0:0:1077035024
    ...
    0.0.3c0c/0x500507630303c562/0x4010403200000000 5:0:2:1077035024
  • This command shows SCSI devices and limits the output to the devices that are attached through the FCP device with bus ID 0.0.3d0c:
    # lszfcp -D -b 0.0.3d0c
    0.0.3d0c/0x500507630300c562/0x4010403200000000 0:0:0:1077035024
    0.0.3d0c/0x500507630300c562/0x4010403300000000 0:0:0:1077100560
    0.0.3d0c/0x50050763030bc562/0x4010403200000000 0:0:1:1077035024
    0.0.3d0c/0x500507630303c562/0x4010403200000000 0:0:2:1077035024