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
- Sensors measure temperature, fan speed and power, each with a warning limit and a critical limit.
- The BMC is a small computer on the server board, with its own network port and event log.
- The BMC can be reached even when the operating system is down.
- On Linux, ipmitool reads the event log with sel list, and the live readings with sensor list.
- A sensor helps only when someone reads its events, so send them to monitoring.
What the sensors watch
- Temperature: the heat of the processors, the memory and the air inside the case.
- Fan speed: how fast each fan spins. A fan at zero has stopped.
- Power supplies: the voltage each supply delivers, and whether it reports a fault.
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.
sudo apt install ipmitoolThe sel list command prints the system event log. Each line has a date, a time, the sensor, and what happened.
sudo ipmitool sel listThe sensor list command shows the current reading of every sensor, with its limits. Compare each reading with its limits.
sudo ipmitool sensor listWhat 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
- A log nobody reads: send BMC events to your monitoring, and alert when one appears.
- A sensor with no reading: the sensor may be faulty, or the software that reads it may be missing. Do not assume it is fine.
- Hot rooms: a blocked vent or a dusty rack slows the cooling for every machine around 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.
Install the ipmitool program, which talks to the BMC.
sudo apt install ipmitoolWhat you should see: The ipmitool program is installed, ready to talk to the BMC on this server.
Print the system event log, one line for each event.
sudo ipmitool sel listWhat you should see: Each line has a date, a time, the sensor, and what happened.
Show the current reading and limits of every temperature, fan and voltage sensor.
sudo ipmitool sensor listWhat 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.