[ Linux ] IPMITool Cheat Sheet

Alexander Hill
Alexander Hill
  • Updated

Document Scope:

This cheat sheet provides a quick reference guide for using IPMITool commands to manage Intelligent Platform Management Interface (IPMI) devices. IPMITool is a command-line utility that allows users to monitor, configure, and manage server hardware remotely through IPMI. This document aims to assist users in efficiently performing common tasks using IPMITool commands.

 

Commands:

  • Installing IPMITool:
    • Description: Displays system information for installing the ipmitool utility.
    • Command:
      • For Centos
        sudo yum update
        sudo yum install ipmitool
      • For Rocky
        sudo dnf update
        sudo dnf install ipmitool
      • For Ubuntu
        sudo apt update
        sudo apt install ipmitool
  • View IP Network Information:
    • Description: Displays system information such as IP address, MAC address, and Network Information.
    • Command:
      ipmitool lan print 1
  • View System Information:
    • Description: Displays system information such as model, serial number, firmware version, and BIOS revision.
    • Command:
      ipmitool fru print
  • Check Sensor Status:
    • Description: Retrieves sensor readings to monitor system health and environmental conditions, including temperature, voltage, and fan speed.
    • Command:
      ipmitool sensor list
  • Power On/Off Server:
    • Description: Controls the power state of the server, allowing users to power on or off the system remotely.
    • Commands:
      ipmitool power <status, on, off, cycle, reset, diag, soft>
  • View Event Log:
    • Description: Displays the event log entries, including hardware-related events and system alerts.
    • Command:
      ipmitool sel <list, info, elist, clear>

  • Retrieve System Health:
    • Description: Retrieves the overall health status of the system, including any critical faults or errors.
    • Command:
      ipmitool sdr <list, type list, type temperature, type fan, type 'power supply'>
  • Set System Boot Device:
    • Description: Configures the system's boot device to specify the device from which the server should boot.
    • Command:
      ipmitool chassis bootdev

      bootdev <device> [clear-cmos=yes|no]
      bootdev <device> [options=help,...]
      none : Do not change boot device order
      pxe : Force PXE boot
      disk : Force boot from default Hard-drive
      safe : Force boot from default Hard-drive, request Safe Mode
      diag : Force boot from Diagnostic Partition
      cdrom : Force boot from CD/DVD
      bios : Force boot into BIOS Setup
      floppy: Force boot from Floppy/primary removable media
  • Enable/Disable SOL (Serial-over-LAN):
    • Description: Enables or disables Serial-over-LAN, allowing users to access the system console remotely over a serial connection.
    • Commands:
        • ipmitool sol < activate | deactivate>
  • Reset BMC (Baseboard Management Controller):
    • Description: Resets the BMC to its default configuration, restoring it to a known state.
    • Command:
        • ipmitool user list
        • ipmitool user set password [user_id]
        • ipmitool user set name [user_id] [username]
        • ipmitool user enable [user_id]
        • ipmitool user disable [user_id]

Conclusion:

The IPMITool cheat sheet provides users with a convenient reference for performing common tasks on IPMI-enabled devices using the IPMITool command-line utility. By familiarizing themselves with these commands, users can effectively monitor system health, control power operations, retrieve event logs, and manage user accounts remotely through IPMI. Experimenting with different commands and options can further enhance users' proficiency in managing IPMI devices using IPMITool.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.