How can I find the WWN (World Wide Name) of my QLogic card?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 4, 5, 6, 7

Issue

  • How can I find the WWN (World Wide Name) of my QLogic card in Red Hat Enterprise Linux?

Resolution

RHEL 4.x or earlier:

$ cat /proc/scsi/<adapter-driver-name>/<instance-number>

Where adapter-driver-name is the host adapter driver name, for example: qla2xxx or qla2300. The instance-number is the host adapter number for your card.

See example output for: cat /proc/scsi/qla2xxx/8.
 
 
RHEL 5.x, 6.x, 7.x:

$ systool -c fc_host -v

The systool utility is contained in the sysfsutils package. Alternatively, if sysfsutils isn't installed, you can look at the information directly within the sysfs tree, for example:

RHEL 5.x
$ grep -v "ZzZz"  /sys/class/scsi_host/host*/device/fc_host\:*/*_name

RHEL 6.x, 7x:
$ grep -v "ZzZz" /sys/class/scsi_host/host*/device/fc_host//_name

See example output for the above three commands.
 
 
 


The following includes links to other websites provided for convenience only. Red Hat has not reviewed the link and is not responsible for the content or its availability. The inclusion of any link to a website does not imply endorsement by Red Hat of the website or their entities, products or services. You agree that Red Hat is not responsible or liable for any loss or expenses that may result due to your use of (or reliance on) the external site or content.
 

World Wide Name (WWN) is a unique identifier in a Content from en.wikipedia.org is not included.Fibre Channel or Content from en.wikipedia.org is not included.Serial Attached SCSI Content from en.wikipedia.org is not included.storage network. Each WWN is either an 8-byte or 16-byte number in an NAA (Network Address Authority) Content from standards.ieee.org is not included.format and includes an Organizationally Unique Identifier Content from en.wikipedia.org is not included.OUI which is Content from standards.ieee.org is not included.registered with Content from en.wikipedia.org is not included.IEEE.

Each fibre channel HBA card has two WWNs:

  • WWNN, the world-wide node name of the card, and
  • WWPN, the world-wide port name of the port on the card.

The WWPN is what is exposed to the switch to identify the port for connectivity and routine purposes.

These identifiers can be found in the BIOS of the card's firmware. For most QLogic cards you can pressing "q" when prompted during system POST can gain you access to this information.

Diagnostic Steps

RHEL 4, example output:

$ cat /proc/scsi/qla2xxx/8
QLogic PCI to Fibre Channel Host Adapter for QLE2460:
        Firmware version 4.04.09 [IP] [84XX] , Driver version
8.02.09.02.04.08-dISP: ISP2432
Request Queue = 0x7db80000, Response Queue = 0x7db70000
Request Queue count = 4096, Response Queue count = 512
Total number of active commands = 0
Total number of interrupts = 171
    Device queue depth = 0x10
Number of free request entries = 4095
Number of mailbox timeouts = 0
Number of ISP aborts = 0
Number of loop resyncs = 0
Number of retries for empty slots = 0
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
Host adapter:loop state = , flags = 0x5a03
Dpc flags = 0x4000000
MBX flags = 0x0
Link down Timeout = 030
Port down retry = 030
Login retry count = 030
Commands retried with dropped frame(s) = 0
Product ID = 0000 0000 0000 0000

SCSI Device Information:
scsi-qla2-adapter-node=200000e08b8068ae; <&lt=WWNN scsi-qla2-adapter-port=210000e08b8068ae; <&lt=WWPN

FC Port Information:

SCSI LUN Information:
(Id:Lun) * - indicates lun is not registered with the OS.

Decoding the WWPN from above:

                  Vendor
 NAA Ven OUI      Specific  Vendor-Name (OUI)
   2 100 00-E0-8B 8068AE    QLogic Corp.                 

 
 
 
Example output for RHEL 5,6:

RHEL 5:
$ systool -c fc_host -v
:
  Class Device = "host8"
  Class Device path = "/sys/class/fc_host/host8"
    fabric_name         = "0x200000e08b8068ae"
    issue_lip           = 
    node_name           = "0x200000e08b8068ae"          <<=WWNN
    port_id             = "0x000000"
    port_name           = "0x210000e08b8068ae"          <<=WWPN
    port_state          = "Linkdown"
    port_type           = "Unknown"
    speed               = "unknown"
    supported_classes   = "Class 3"
    supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit"
    symbolic_name       = "QLE2460 FW:v5.06.03 DVR:v8.03.07.15.05.09-k"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              = 
Device = "host8"
Device path = "/sys/devices/pci0000:00/0000:00:04.0/0000:08:00.0/host8"
  optrom_ctl          = <store method only>
  reset               = <store method only>
  uevent              = <store method only>

$ grep -v "ZzZz" /sys/class/scsi_host/host*/device/fc_host:/_name
:
/sys/class/scsi_host/host8/device/fc_host:host8/fabric_name:0x200000e08b8068ae
/sys/class/scsi_host/host8/device/fc_host:host8/node_name:0x200000e08b8068ae <&lt=WWNN /sys/class/scsi_host/host8/device/fc_host:host8/port_name:0x210000e08b8068ae <&lt=WWPN /sys/class/scsi_host/host8/device/fc_host:host8/symbolic_name:QLE2460 FW:v5.06.03 DVR:v8.03.07.15.05.09-k

RHEL 6:
$ systool -c fc_host -v
:
Class Device = "host8"
Class Device path = "/sys/devices/pci0000:00/0000:00:04.0/0000:08:00.0/host8/fc_host/host8"
dev_loss_tmo = "30"
fabric_name = "0xffffffff"
issue_lip = max_npiv_vports = "127"
node_name = "0x200000e08b8068ae" <&lt=WWNN npiv_vports_inuse = "0"
port_id = "0x000000"
port_name = "0x210000e08b8068ae" <&lt=WWPN port_state = "Linkdown"
port_type = "Unknown"
speed = "unknown"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
symbolic_name = "QLE2460 FW:v5.06.05 DVR:v8.04.00.04.06.3-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
vport_create = vport_delete =

Device = "host8"
Device path = "/sys/devices/pci0000:00/0000:00:04.0/0000:08:00.0/host8"
  fw_dump             = 
  nvram               = "ISP x"
  optrom              = 
  optrom_ctl          = <store method only>
  reset               = <store method only>
  sfp                 = "xx"
  uevent              = "DEVTYPE=scsi_host"
  vpd                 = "x0"

$ grep -v "ZzZz" /sys/class/scsi_host/host*/device/fc_host//_name
:
/sys/class/scsi_host/host8/device/fc_host/host8/fabric_name:0xffffffff
/sys/class/scsi_host/host8/device/fc_host/host8/node_name:0x200000e08b8068ae <&lt=WWNN /sys/class/scsi_host/host8/device/fc_host/host8/port_name:0x210000e08b8068ae <&lt=WWPN /sys/class/scsi_host/host8/device/fc_host/host8/symbolic_name:QLE2460 FW:v5.06.05 DVR:v8.04.00.04.06.3-k

SBR
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.