You are on page 1of 3

How to check the WWN of your fiber device

In this document, well briefly discuss how to fetch the WWN number, which is like the MAC address for
network interface device or serial number for a physical server, of your Emulex and QLogic fiber device.

Emulex:
We assume that you are using Red Hat operating system, in which the following commands can be used:
# more /sys/class/fc_host/host*/node_name
0x2000001b3209b4xx (output should be different based on your own device)
# more /sys/class/fc_host/host*/port_name
0x2100001b3209b4xx (output should be different based on your own device)
The * here means the device number which could be a nature number starting from 0
WWN number includes port WWN and node WWN. The complete WWN should be the node_name + port_name.
In the case above, it should be 2000001b3209b4xx2100001b3209b4xx

QLogic:
We will talk about how to check the QLogic device WWN on different platforms. Some of them might not be
useful to NSN current messaging solutions.
1. AIX
a. To get the fiber device name of this AIX host
# lsdev Cc adapter S a | grep Adapter
fcs0
Available 09-08 FC Adapter
fcs1
Available 09-09 FC Adapter
The output shows that there are 2 fiber adapter connected to this host, fcs0 and fcs1.
b. To check the WWN of this device
# lscfg -vpl fcs0
fcs0
U787B.001.DNWG664-P1-C1-T1 FC Adapter
Part Number.................10N8620
Serial Number...............1B74404468
Manufacturer................001B
EC Level....................A
Customer Card ID Number.....5759
FRU Number.................. 10N8620
Device Specific.(ZM)........3
Network Address.............10000000C96E28xx
ROS Level and ID............02C82138
Device Specific.(Z0)........1036406D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FFC01159
Device Specific.(Z5)........02C82138
Device Specific.(Z6)........06C12138
Device Specific.(Z7)........07C12138
Device Specific.(Z8)........20000000C96E28xx

Device Specific.(Z9)........BS2.10X8
Device Specific.(ZA)........B1F2.10X8
Device Specific.(ZB)........B2F2.10X8
Device Specific.(ZC)........00000000
Hardware Location Code......U787B.001.DNWG664-P1-C1-T1
WWN has been marked as red as above.
2. HP Unix
a. To get the fiber device name of this HP host
# ioscan -fnC fc
Class
I H/W Path Driver S/W State
H/W Type
Description
=================================================================
fc
0 0/3/1/0
fcd CLAIMED
INTERFACE
HP A6826-60001 2Gb
Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd0
fc
1 0/3/1/1
fcd CLAIMED
INTERFACE
HP A6826-60001 2Gb
Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)
/dev/fcd1
From the output above we can see that 2 fiber device is connected to the host, fcd0 and fcd1
b. To check the WWN of this device
# fcmsutil /dev/fcd0
Vendor ID is = 0x001077
Device ID is = 0x002312
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x0012ba
PCI Mode = PCI-X 133 MHz
ISP Code version = 3.3.18
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0xa10500
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b00001db2xx
N_Port Port World Wide Name = 0x50060b00001db2xx
Switch Port World Wide Name = 0x205e000dec0e2exx
Switch Node World Wide Name = 0x2001000dec0e2exx
Driver state = ONLINE
Hardware Path is = 0/3/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx & 24xx
Driver B.11.23.04 /ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Oct
18 2005,08:21:11
From the output above, we can see the WWN of this fiber device marked as red. Beside that, the device
WWN of fiber switch port can also be seen as marked blue.
3. Solaris
a. Check the current storage device and fiber device including their WWN
# luxadm probe
b. Check the ports of HBA and their properties as well
# luxadm -e port

c.

/devices/pci@0,0/pci1022,7450@2/pci1077,101@1/fp@0,0:devctl
NOT CONNECTED
/devices/pci@0,0/pci1022,7450@2/pci1077,101@1,1/fp@0,0:devctl
CONNECTED
From the output above, we can see that only one fiber card connected to the storage device.
Chose the connected fiber device and check its WWN:
#luxadm
-e
dump_map
/devices/pci@0,0/pci1022,7450@2/pci1077,101@1/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN
Node WWN
Type
0
0
0
210000e08b1982xx 200000e08b1982xx 0x1f (Unknown
Type,Host Bus Adapter)

4. Redhat
In Redhat, all the device management related information is stored in kernel, under /proc. And HBA cardrelated information is store under the directory /proc/scsi/wla2300/, under which, different device corresponds
to different file name. Eg:
# grep scsi /proc/scsi/qla2300/1
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q=
0
scsi-qla0-adapter-node=200000e08b9cf6xx;
scsi-qla0-adapter-port=210000e08b9cf6xx;
All the outputs above are just examples which are 99.999% percent of chances NOT the same as yours.
If you have found any error or inconsistence with your own device, please feel free to reach me at
jiaxing.gu@nsn.com

You might also like