Skip to content

Instantly share code, notes, and snippets.

@noslin005
Last active January 13, 2024 05:00
Show Gist options
  • Save noslin005/a87a8c8dba37a4f0fc3bcaf724b4a640 to your computer and use it in GitHub Desktop.
Save noslin005/a87a8c8dba37a4f0fc3bcaf724b4a640 to your computer and use it in GitHub Desktop.
Use ipmitool with supermicro boards
  1. Read the fan speed mode:
ipmitool -H <IP> -U <USER> -P <PASSWD> raw 0x30 0x45 0x00

The values are:

  • Standard: 0
  • Full: 1
  • Optimal: 2
  • Heavy IO: 4
  1. Set fan mode to "full"
  ipmitool -H <IP> -U <USER> -P <PASSWD> raw 0x30 0x45 0x01 0x01
  1. Force force PXE boot EFI to all future boots (persistent).
ipmitool -H <IP> -U <USER> -P <PASSWD> raw 0x0 0x8 0x05 0xe0 0x04 0x0 0x0 0x0
  1. What is the IPMI raw command to get the BIOS version?
ipmitool -I lanplus -H IP U ADMIN -P ADMIN raw 0x30 0xAC 0x00 0x00 | xxd -r -p
# The output will need to convert from Hex to ASCII. This command will work using X10 or later BMC firmware.
  1. Get the LAN1 MAC Address
ipmitool raw 0x30 0x21
  1. Get onboard LAN MAC Address (start from 2nd).
 ipmitool raw 0x30 0x9f
@zohourih
Copy link

zohourih commented Jan 13, 2024

@noslin005 Thank you for these commands. A couple points:

  • Command 4 is missing "-" before "U"
  • Command 2 and 5 (actually 6) also have some leading spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment