lszfcp - List zfcp devices

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


1  lszfcp ? -H? -P? -D? -a? -V 
2.1+ 
2.1 -b<device_bus_id>
2.1 --busid=<device_bus_id>
2.1 -p<port_name>
2.1 --wwpn=<port_name>
2.1 -l<lun>
2.1 --lun=<lun>
2.1! -s/sys
2.1 -s <mount_point>
2.1 --sysfs=<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.
-a or --attributes
shows all attributes (implies -V).
-V or --verbose
shows sysfs paths of associated class and bus devices.
-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.
-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, then exits. 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:0
    0.0.3d0c/0x500507630300c562/0x4010403300000000 0:0:0:1
    0.0.3d0c/0x50050763030bc562/0x4010403200000000 0:0:1:0
    0.0.3d0c/0x500507630303c562/0x4010403200000000 0:0:2:0
    0.0.500c/0x50050763030bc562/0x4010403200000000 1:0:0:0
    ...
    0.0.3c0c/0x500507630303c562/0x4010403200000000 5:0:2:0
  • 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:0
    0.0.3d0c/0x500507630300c562/0x4010403300000000 0:0:0:1
    0.0.3d0c/0x50050763030bc562/0x4010403200000000 0:0:1:0
    0.0.3d0c/0x500507630303c562/0x4010403200000000 0:0:2:0