Skip to main content

Intelligent Platform Management Interface (IPMI) Commands

361 words·
IPMI BMC Commands
Table of Contents

IPMI Commands
#

Install IPMI
#

# Install package
sudo apt update
sudo apt install ipmitool -y

Server Status
#

# List server status
ipmitool -I lanplus -H 10.8.150.81 -U username -P password chassis status

# Shell output:
System Power         : on
Power Overload       : false
Power Interlock      : inactive
Main Power Fault     : false
Power Control Fault  : false
Power Restore Policy : previous
Last Power Event     : ac-failed
Chassis Intrusion    : inactive
Front-Panel Lockout  : inactive
Drive Fault          : false
Cooling/Fan Fault    : false
Sleep Button Disable : allowed
Diag Button Disable  : allowed
Reset Button Disable : allowed
Power Button Disable : allowed
Sleep Button Disabled: false
Diag Button Disabled : false
Reset Button Disabled: false
Power Button Disabled: false



# Check power status
ipmitool -I lanplus -H 10.8.150.81 -U username -P password power status

# Shell output:
Chassis Power is on
Chassis Power is off
  • System Power Indicates whether the system is currently powered on or off.

Power Restore Policy
#

Values:

  • always-on Power on the system when AC power is restored

  • always-off Leave the system off when AC power is restored

  • previous Return to the state the system was in when AC power was lost

# Set to: Always On
ipmitool -I lanplus -H 10.8.150.81 -U username -P password chassis policy always-on

# Set to: Always Off
ipmitool -I lanplus -H 10.8.150.81 -U username -P password chassis policy always-off

# Set to: Previous
ipmitool -I lanplus -H 10.8.150.81 -U username -P password chassis policy previous

Start, Stop & Reboot
#

# Turn off system power: Alin to hysically unplugging the machine or holding down the power button until it shuts down
ipmitool -I lanplus -H 10.8.150.81 -U username -P password power off

# Request to power on the system
ipmitool -I lanplus -H 10.8.150.81 -U username -P password power on

# Hard reset: System will abruptly restart without a graceful shutdown
ipmitool -I lanplus -H 10.8.150.81 -U username -P password power reset

Sensor data & logs
#

# Check sensor data
ipmitool -I lanplus -H 10.8.150.81 -U username -P password sensor list

# Check logs
ipmitool -I lanplus -H 10.8.150.81 -U username -P password sel list