HowTo Check HBA Firmware & Driver Version Info Linux

FC HBA РFiber Channel Host Bus Adapter which is used to connect SAN devices to servers. To allocate LUN(s)/storage space to server. In this  article i am going to show you Howto check HBA firmware & Driver Version Info Linux. Which are the details required to cross verify compatibility with SAN switch connectivity.

Check HBA Firmware & Driver Version Info Linux

The very first command is to verify whether we have HBA cards installed in your machine.

# lspci -nn | grep -i hba
04:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02)
04:00.1 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02)

Note: Highlighted in orange color or PCI slot numbers, remember we use them in this article

# ls -l /sys/class/fc_host
total 0
drwxr-xr-x 3 root root 0 Feb 19 23:44 host11
drwxr-xr-x 3 root root 0 Feb 19 23:44 host12

Check current used host number details using above command and note it down.

Now check it up Kernel driver name as shown below

# lspci -vvv -s 04:00.1 |grep -i "Kernel Driver"
 Kernel driver in use: qla2xxx

Get HBA Driver Info

Vendor details HowTo Check HBA Firmware & Driver Info in Linux

# lspci -k -s 04:00.0
04:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
 Subsystem: QLogic Corp. Device 015d
 Kernel driver in use: qla2xxx
 Kernel modules: qla2xxx

Use modinfo command to get the version details

# modinfo qla2xxx | grep version
version: 8.03.07.15.05.09-k
srcversion: A40E0347B413757ECA197E44

Or

# systool -c scsi_host -v -d host11 | grep driver_version
 driver_version = "8.03.07.15.05.09-k"

Firmware Version Details

Host Bus Adapter firmware details can be achieved using below command

# systool -c scsi_host -v -d host11 | grep fw_version
 84xx_fw_version = ""
 fw_version = "5.06.03 (90d5)"
 optrom_fw_version = "8.01.02 32896"

You can also use scli command to get HBA firmware details

# scli -i | grep "Driver Firmware Version"
Driver Firmware Version : 5.06.03 (90d5)
Driver Firmware Version : 5.06.03 (90d5)

Single command get all Firmware, Driver and HBA Model details. HowTo Check HBA Firmware & Driver Info in Linux

# systool -a -v -c scsi_host host11 | egrep "Class Device|model|version|proc_name"
 Class Device = "host11"
 Class Device path = "/sys/class/scsi_host/host11"
 84xx_fw_version = ""
 driver_version = "8.03.07.15.05.09-k"
 fw_version = "5.06.03 (90d5)"
 model_desc = "PCI-Express Dual Channel 8Gb Fibre Channel HBA"
 model_name = "QLE2562"
 mpi_version = ""
 optrom_bios_version = "3.31"
 optrom_efi_version = "6.10"
 optrom_fcode_version= "0.00"
 optrom_fw_version = "8.01.02 32896"
 phy_version = ""
 proc_name = "<NULL>"

Conclusion

HowTo Check HBA Firmware & Driver Info in Linux is very simple using above commands. First identify which card details you would like to find they note there slot number details and hostN.

Related Articles

Hard vs Soft Zoning

SAN Switch Basics

HowTo Find SAN Disk LUN id from Linux

lscpi

Thanks for your wonderful Support and Encouragement

Ravi Kumar Ankam

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

Leave a Reply

Your email address will not be published. Required fields are marked *