Sensors, fans and the BMC's event log

Video 087 of 140 in Virtualization Foundations, in the unit “Hardware failure and health”. 3:35, with English and Hindi audio.

A server reports on its own health all the time. Its sensors measure temperature, fan speed and power, and a small controller records every reading that crosses a limit. This article explains what the sensors watch, what the baseboard management controller (BMC) records, and how to read its event log and live readings from Linux with the ipmitool program.

What you will learn

What the sensors watch

Every sensor has a warning limit and a critical limit. When a reading crosses a limit, the server records an event, and you read that record when something goes wrong.

The BMC and its event log

Sensor readings go to a small computer built into the server board, called the BMC, which stands for baseboard management controller. The BMC has its own network port. You can reach it even when the operating system is down, or when the server is switched off but still plugged in.

The BMC keeps the system event log, a record of every limit crossed and every fault. Most vendors also give it a web page.

Read the event log and the readings on Linux

On Linux, the ipmitool program talks to the BMC. Install it, and run it with root rights.

Install the ipmitool program
sudo apt install ipmitool

The sel list command prints the system event log. Each line has a date, a time, the sensor, and what happened.

Print the system event log
sudo ipmitool sel list

The sensor list command shows the current reading of every sensor, with its limits. Compare each reading with its limits.

Show the current readings and limits of every sensor
sudo ipmitool sensor list

What happens when a fan stops

Take a hot afternoon in a Harbor Point data centre, when a fan in one server slows and then stops. Warm air stays inside, and the temperature climbs. The BMC sees the reading cross its limit, and writes an event to the log. If the heat keeps rising, the processors slow down, and the server can shut itself off to protect the chips.

What goes wrong, and how you notice it

Read the event log and the sensor readings

You need a Linux server with a BMC and root rights. Compare each reading with its limits, not with your own guess.

  1. Install the ipmitool program, which talks to the BMC.

    sudo apt install ipmitool

    What you should see: The ipmitool program is installed, ready to talk to the BMC on this server.

  2. Print the system event log, one line for each event.

    sudo ipmitool sel list

    What you should see: Each line has a date, a time, the sensor, and what happened.

  3. Show the current reading and limits of every temperature, fan and voltage sensor.

    sudo ipmitool sensor list

    What you should see: Each sensor shows its current reading and its limits. Compare each reading with its limits.

Terms

BMC
Baseboard management controller: a small computer on the server board, with its own network port, that records sensor events.
System event log
The BMC's record of every sensor limit crossed and every hardware fault.

Check yourself

What does the BMC keep, and how can you reach it?

It keeps the system event log, and it has its own network port, so you can reach it even when the operating system is down.

What command prints the event log on Linux?

sudo ipmitool sel list prints one line per event, with the date, the time, the sensor and what happened.

Why must someone read the sensor events?

A sensor helps only when its events are read. Send them to monitoring, because a log nobody reads gives no warning.

Previous: Memory errors: the ones fixed and the ones that are not. Next: Network link errors.