Here are some useful commands for the most popular Linux/Unix operating systems to find your HBA WWN. There are several methods to identify HBA WWN for the fiber storage units in your server network.
Method 1: (The hard way)
Verified on Suse Linux Enterprise Server and CentOS/Redhat
The info is in
/sys/class/scsi_host/hostN/device/fc_host/hostN/port_name
Where “N” is the number of device for your fiber HBAs.
Unfortunately, you may have a large number of listings depending on the different cards (besides fiber HBA) that you have on your system. In my example, I have six listings: