How to find WWPN of HBA on RedHat 6.x


Method 1)

To Find all HBA insterface on your system:

lspci -nn | grep -i hba

To Identify the WWPN(s):

ls -lrt /sys/class/fc_host/host[0-9]*/port_name

To Check the WWPN(s) number(s):

cat /sys/class/fc_host/host[0-9]*/port_name

Method 2)

Download and install the following packages:

rpm -ivh libsysfs-2.1.0-6.1.el6.x86_64.rpm
rpm -ivh sysfsutils-2.1.0-6.1.el6.x86_64.rpm

or

yum install sysfsutils

Find the device(s) attached to your system

ls -lrt /sys/class/fc_host/host[0-9]/port_name

To find FC HBA info on your system

systool -c fc_host -v -d hostx (example systool -c fc_host -v -d host5)

To find SCSI adapter info on your system

systool -c scsi_host -v -d hostx (example systool -c scsi_host -v -d host5)
You’re done!

Comments are closed.