• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How To Check World Wide Port Names (WWPN) of Tape Drives Attached to Linux host

by admin

Use the command ‘cat /proc/scsi/scsi‘ to check attached scsi devices. Below example shows IBM Ultrium generation 6 (LTO-6) Tape Drives attached to this Linux system.

# cat /proc/scsi/scsi
Attached devices:
Host: scsi10 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM      Model: ULT3580-TD6      Rev: F9A0
  Type:   Sequential-Access                ANSI  SCSI revision: 06
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM      Model: ULT3580-TD6      Rev: F9A0
  Type:   Sequential-Access                ANSI  SCSI revision: 06
# yum install sg3_utils
# sg_map -i -x
/dev/sg2073  12 0 0 0  1  /dev/nst0  IBM       ULT3580-TD6       F9A0
/dev/sg2075  10 0 0 0  1  /dev/nst2  IBM       ULT3580-TD6       F9A0

Command ‘systool’ shows WWPN of Tape Devices attached to Linux System. Command ‘systool’ requires the libsysfs and sysfsutils packages to be installed. You need to install them first if they are not installed.

# yum install libsysfs
# yum install sysfsutils
# systool -c fc_transport -v
Class = "fc_transport"

    Class Device = "0:0"
  Class Device path = "/sys/devices/pci0000:80/0000:80:02.0/0000:84:00.0/host3/rport-3:0-0/target3:0:0/fc_transport/target3:0:0"
    node_name           = "0x500308c3a30dc094"
    port_id             = "0x511d00"
    port_name           = "0x500308c3a30dc095"
    uevent              = 

    Device = "target3:0:0"
    Device path = "/sys/devices/pci0000:80/0000:80:02.0/0000:84:00.0/host3/rport-3:0-0/target3:0:0"
      uevent              = "DEVTYPE=scsi_target"

	  
  Class Device = "0:0"
  Class Device path = "/sys/devices/pci0000:c0/0000:c0:02.0/0000:c4:00.1/host10/rport-10:0-0/target10:0:0/fc_transport/target10:0:0"
    node_name           = "0x500308c3a30dc0a8"
    port_id             = "0x511b00"
    port_name           = "0x500308c3a30dc0a9"
    uevent              = 

    Device = "target10:0:0"
    Device path = "/sys/devices/pci0000:c0/0000:c0:02.0/0000:c4:00.1/host10/rport-10:0-0/target10:0:0"
      uevent              = "DEVTYPE=scsi_target"

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to enable CUPS Debugging on CentOS/RHEL
  2. How to check the PHP version on Linux
  3. How to recover from deleted root entry in /etc/shadow and/or /etc/passwd files in CentOS / RHEL 6
  4. crontab Command Examples in Linux
  5. How to change the default permissions on /var/log/audit/audit.log file in CentOS/RHEL
  6. How to Start and Stop OSWatcher
  7. How to remove bonding Network configuration in CentOS/RHEL
  8. dsniff Command Examples in Linux
  9. aurvote Command Examples
  10. dnsmap: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright