//
Search
Duplicate
😘

How to check BIOS and BMC Version

How to check the BIOS and BMC versionTable of contents
1. Check BIOS version 2. Check BMC version 3. Create Shell Script
JavaScript
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
Plain Text
•
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"
Plain Text
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
Plain Text
•
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"
Plain Text
3. Create Shell Script
# vim check_bios_bmc.sh #!/bin/bashprintf "%-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
Plain Text
If you liked the article, please click the follow button.