[Linux] How to check BIOS and BMC Version

Jack Kim
1 min readApr 21, 2022

How to check the BIOS and BMC version

Table of contents

  1. Check BIOS version
  2. Check BMC version
  3. Create Shell Script

1. Check BIOS version

  • Using the “dmidecode” command
# dmidecode -t bios | egrep -i "version|date"
Version: 0.11
Release Date: 04/20/2022
# dmidecode -s bios-version
0.11
# dmidecode -s bios-release-date
04/20/2022
  • Using the “curl” command
# curl -s -k -u  bmc_user:bmc_user_password -X GET https://<BMC-IP-Address>/redfish/v1/UpdateService/FirmwareInventory/BIOS | python -m json.tool | grep -i version
"Version": "00.11.0000"

2. Check BMC version

  • Using the “ipmitool” command
# ipmitool mc info | egrep -i "firmware" | grep -iv "aux"
Firmware Revision : 0.11
# cat /sys/class/ipmi/ipmi0/device/bmc/firmware_revision
0.11
  • Using the “curl” command
# curl -s -k -u  bmc_user:bmc_user_password -X GET https://<BMC-IP-Address>/redfish/v1/UpdateService/FirmwareInventory/BMC | python -m json.tool | grep -i version
"Version": "0.11.0"

3. Create Shell Script

# vim check_bios_bmc.sh
#!/bin/bash
printf "%-20s" "BIOS_Ver"
printf "%-20s" "BIOS_Date"
printf "%-10s" "BMC_Ver"
printf "\n"
printf "%-20s" "$(dmidecode -s bios-version)"
printf "%-20s" "$(dmidecode -s bios-release-date)"
printf "%-10s" "$(cat /sys/class/ipmi/ipmi0/device/bmc/firmware_revision)"
printf "\n"
# sh check_bios_bmc.sh
BIOS_Ver BIOS_Date BMC_Ver
0.11 04/20/2022 0.11

If you liked the article, please click the follow button.

--

--