Querying HBA Properties
This section describes how to query the attributes of QLogic and Emulex HBAs, including their models, driver versions, firmware versions, WWNs, port topologies, and port rates. To query other attributes or other vendors' HBAs, it is recommended that you use the management software provided by the respective HBA vendor. See the operation guide of the corresponding HBA management software for detailed operations.
QLogic HBA
To query the QLogic HBA model:
[root@localhost ~]# cat /sys/class/scsi_host/host*/model_name QLE2672 QLE2672
To query the QLogic HBA driver version:
[root@localhost ~]# cat /sys/class/scsi_host/host*/driver_version 8.07.00.38.07.4-k1 8.07.00.38.07.4-k1
To query the QLogic HBA firmware version:
[root@localhost ~]# cat /sys/class/scsi_host/host*/optrom_fw_version 7.03.00 7917781 7.03.00 7917781
To query the QLogic HBA WWN:
[root@localhost ~]# cat /sys/class/fc_host/host*/port_name 0x2100000e1e1e0091 0x2100000e1e1e0090
To query the QLogic HBA topology:
[root@localhost ~]# cat /sys/class/fc_host/host*/port_type NPort (fabric via point-to-point) NPort (fabric via point-to-point)
To query the QLogic HBA port rate:
[root@localhost ~]# cat /sys/class/fc_host/host*/speed 16 Gbit 16 Gbit
Emulex HBA
To query the Emulex HBA model:
[root@localhost ~]# cat /sys/class/scsi_host/host*/modelname LPe32002-M2 LPe32002-M2
To query the Emulex HBA driver version:
[root@localhost ~]# cat /sys/class/scsi_host/host*/lpfc_drvr_version Emulex LightPulse Fibre Channel SCSI driver 11.2.0.6 Emulex LightPulse Fibre Channel SCSI driver 11.2.0.6
To query the Emulex HBA firmware version:
[root@localhost ~]# cat /sys/class/scsi_host/host*/fwrev 11.2.156.27, sli-4:2:c 11.2.156.27, sli-4:2:c
To query the Emulex HBA WWN:
[root@localhost ~]# cat /sys/class/fc_host/host*/port_name 0x10000090fac7dbf2 0x10000090fac7dbf3
To query the Emulex HBA topology:
[root@localhost ~]# cat /sys/class/fc_host/host*/port_type NPort (fabric via point-to-point) NPort (fabric via point-to-point)
To query the Emulex HBA port rate:
[root@localhost ~]# cat /sys/class/fc_host/host*/speed 32 Gbit 32 Gbit