How to find WWN and WWPN in Linux?
First let us check, how many HBAs are available on the sever?
mytestsrv1# ls /sys/class/fc_host/
Or you can try the following method as well,
07:0a.0 Fibre Channel: Emulex Corporation Helios LightPulse Fibre Channel Host Adapter (rev 01)
08:0b.0 Fibre Channel: Emulex Corporation Helios LightPulse Fibre Channel Host Adapter (rev 01)
We have Two HBA here from the above example (host0 and host1).
To get the WWNN (World Wide Node Number) in Linux:
mytestsrv1# cat /sys/class/fc_host/host0/node_name
mytestsrv1# cat /sys/class/fc_host/host1/node_name
To get the WWPN (World Wide Port Number) in Linux:
mytestsrv1# cat /sys/class/fc_host/host0/port_name0x10000000c9538d83mytestsrv1# cat /sys/class/fc_host/host1/port_name0x10000000c9538dac
If you have more HBAs, replace "host0 or host1" with "hostN ". In most cases, System admins need to provide the WWPN to storage admins for the storage allocation.