Identifying HBAs
After an HBA is installed on a host, run the following command on the host to check whether the HBA is identified by the host:
[root@localhost ~]# lspci|grep Fibre
03:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
03:00.1 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
[root@localhost ~]#
[root@localhost ~]# cat /sys/class/scsi_host/host*/model*name
LPe12002
LPe12002
The output indicates that the host has identified two Fibre Channel host ports and the HBA model is Emulex LPe12002.
Querying HBA WWNs
Find the WWN information in the /sys/class/fc_host/host*/port_name file.
# cat /sys/class/fc_host/host*/port_name
0x210000e08b907955
0x210000e08b907956