【轉】How can I get firmware version of a Qlogic HBA card?
阿新 • • 發佈:2018-11-04
https://access.redhat.com/solutions/36776
How can I get firmware version of a Qlogic HBA card?
SOLUTION UNVERIFIED - 已更新 2017年八月25日05:11 -
環境
- Red Hat Enterpise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- QLogic HBA
問題
- How can I get firmware version of a Qlogic HBA card?
決議
-
The HBA adapter bootcode (BIOS and Firmware) details can be seen within optrom and optrom_ctl files within sysfs. For example:
# lsscsi -H |grep qla [2] qla2xxx [3] qla2xxx # ls -1c /sys/class/scsi_host/host*/optrom_fw_version | cut -d'/' -f 5 | \ xargs -I {} sh -c 'grep -Hv "zz" /sys/class/scsi_host/{}/optrom*version' /sys/class/scsi_host/host2/optrom_bios_version:2.16 /sys/class/scsi_host/host2/optrom_efi_version:2.27 /sys/class/scsi_host/host2/optrom_fcode_version:3.13 /sys/class/scsi_host/host2/optrom_fw_version:5.03.06 1154 /sys/class/scsi_host/host2/optrom_gold_fw_version: /sys/class/scsi_host/host3/optrom_bios_version:2.16 /sys/class/scsi_host/host3/optrom_efi_version:2.27 /sys/class/scsi_host/host3/optrom_fcode_version:3.13 /sys/class/scsi_host/host3/optrom_fw_version:5.03.06 1154 /sys/class/scsi_host/host3/optrom_gold_fw_version:
-
An alternative method is to use the systool to retrieve this information. This method requires the sysfsutils package be installed, ie:
# systool -c scsi_host -v -d host2 | grep optrom optrom_bios_version = "2.16" optrom_efi_version = "2.27" optrom_fcode_version= "3.13" optrom_fw_version = "5.03.06 1154" optrom_gold_fw_version= "" optrom = optrom_ctl = <store method only>