How to find wwn in Redhat Linux?
HBA= HOST BUS ADAPTER
HBA is the device which is inserted in the server and storage mother board PCI slot.
Fibre channel(FC) cable connected in HBA ports.
HBA that interconnects with servers, switches and storage devices on the fabric switch.
FC HBA have (world wide port number WWPN and WWNN (world wide node name) like MAC address
To get the WWNN (World Wide Node Number) in Linux:
#cat /sys/class/fc_host/host3/node_name
0x500143802427eb2d
To get the WWPN (World Wide Port Number) in Linux:
WWPN is a unique 64-bit identifier that is assigned to a fibre channel node port, called an N_port. The storage area network (SAN) administrator assigns storage to a WWPN. This scheme provides security limiting access to storage on the SAN
# cat /sys/class/fc_host/host3/port_name
0x500143802427eb2c
a. Below is the simple command to find WWN on Redhat servers.
systool -c fc_host –v
systool -c fc_host -v
Class = "fc_host"
Class Device = "host3"
Class Device path = "/sys/class/fc_host/host3"
fabric_name = "0x10000027f896ae84"
issue_lip = <store method only>
node_name = "0x500143802428e171"
port_id = "0x010200"
port_name = "0x500143802428e170"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "8 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
symbolic_name = "HPAJ764A FW:v5.03.02 DVR:v8.03.01.05.05.06-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent = <store method only>
Device = "host3"
Device path = "/sys/devices/pci0000:00/0000:00:01.0/0000:04:00.0/host3"
ct =
edc = <store method only>
els =
fw_dump =
nvram = "ISP "
optrom_ctl = <store method only>
optrom =
reset = <store method only>
sfp = ""
uevent = <store method only>
vpd = "$"
Class Device = "host4"
Class Device path = "/sys/class/fc_host/host4"
fabric_name = "0x10000027f8badc86"
issue_lip = <store method only>
node_name = "0x500143802428e173"
port_id = "0x010200"
port_name = "0x500143892428e172"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "8 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
symbolic_name = "HPAJ764A FW:v5.03.02 DVR:v8.03.01.05.05.06-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent = <store method only>
Device = "host4"
Device path = "/sys/devices/pci0000:00/0000:00:01.0/0000:04:00.1/host4"
ct =
edc = <store method only>
els =
fw_dump =
nvram = "ISP "
optrom_ctl = <store method only>
optrom =
reset = <store method only>
sfp = ""
uevent = <store method only>
vpd = "$"
Step 1: cd /sys/class/fc_host
Step 2: cd to the host3# Host directory.
Step 3: cat node_name
0x500143802428e171
Useful command to find to list the FC Adapter
# lspci | grep -i Fibre
04:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
04:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
No comments:
New comments are not allowed.