The Baseboard Management Controller
The BMC is a small computer of its own, built into the server's mainboard. It has its own processor, firmware, and network port, and it runs on standby power whenever the server is plugged in. It reads the sensors, keeps a hardware event log, and can control power and the console of the main system. This is called out-of-band management: it does not depend on the operating system or on the server's normal network ports.
What You Can Do with It
- Remote console: see the server's screen and use its keyboard from a browser, from power-on through the firmware setup and boot messages.
- Power control: switch the server on or off, reset it, or request a clean shutdown.
- Virtual media: attach an ISO file from your computer as if it were a disk in the server, to install or repair an operating system.
- Sensors: read temperatures, fan speeds, voltages, and power supply state.
- Event log: see hardware errors such as memory faults or a failed power supply.
Virtual media through the console is one way to install a system on a bare-metal server; the other is network boot, covered in what is PXE boot.
Names by Hardware Vendor
| Vendor | BMC name |
|---|---|
| Dell | iDRAC |
| HPE | iLO |
| Lenovo | XClarity Controller |
| Supermicro | BMC, often called IPMI |
Current generations support the newer Redfish standard, a web API with JSON, and most still offer IPMI, though some ship with IPMI over LAN turned off. Each adds its own web interface for the console and virtual media.
ipmitool on the Server Itself
On the running server, ipmitool talks to the BMC through the local interface, with no password:
sudo apt install ipmitool # Debian and Ubuntu
sudo dnf install ipmitool # AlmaLinux and Rocky Linux
sudo ipmitool chassis status
sudo ipmitool sensor
sudo ipmitool sel list
sudo ipmitool lan print 1
These show the power state, the sensor readings, the event log, and the BMC's network settings on channel 1. If ipmitool cannot open /dev/ipmi0, the IPMI kernel modules (ipmi_si and ipmi_devintf) are not loaded, or the machine is a virtual server, which has no BMC.
ipmitool over the Network
From a management machine that can reach the BMC, use the lanplus interface. The -a option asks for the password, so it does not end up in your shell history or the process list, as it can with -P; -E reads it from the IPMI_PASSWORD environment variable instead:
ipmitool -I lanplus -H BMC_IP -U BMC_USER -a chassis power status
ipmitool -I lanplus -H BMC_IP -U BMC_USER -a chassis power soft
ipmitool -I lanplus -H BMC_IP -U BMC_USER -a sol activate
power soft asks the operating system to shut down cleanly through ACPI; power cycle and power reset act at once, like the power button, and can lose unsaved data. sol activate opens a serial console in the terminal; leave it by typing ~. at the start of a line.
Security Rules
A BMC has full control of the hardware below the operating system, and BMC firmware has a long record of security flaws. In IPMI 2.0, the RAKP login step lets a remote party obtain a password hash for offline cracking (CVE-2013-4786); vendors describe it as part of the specification, with no firmware fix. Treat the management port accordingly:
- Never on a public address: place the BMC on a dedicated management network, reached through a VPN or a jump host.
- Change the factory login at once: set a long, unique administrator password, and preferably a new user name, the first time you connect, and remove accounts you do not use.
- Update the firmware: install the vendor's BMC firmware updates like any other security update.
- Turn off what you do not use: for example IPMI over LAN when you use only the web interface or Redfish.
If the BMC Stops Responding
A BMC can hang while the server keeps running. From the server, sudo ipmitool mc reset cold restarts the controller only, not the operating system. If the server is a rented dedicated machine, the management access may be provided through your provider's control panel instead of directly. See what is a bare metal server and VPS vs dedicated server.