Lesson 1 of 9 · 26m
IPMI and BMCs: The Real Console Is Out-of-Band
Treat the baseboard management controller as the machine's real control plane and learn the commands, protocols, and failure modes that matter.
The first time a production server drops off the network, you learn the difference between managing Linux and managing hardware. SSH is a convenience layered on top of a healthy operating system. The baseboard management controller — the BMC — is the small independent computer that still answers when the OS is absent, kernel panicked, misnetworked, or halfway through installing itself. If you provision bare metal seriously, you drive the BMC first and the operating system second.
What the BMC actually gives you
A BMC exposes power control, sensor readings, boot device selection, serial-over-LAN, virtual media, and often a remote keyboard/video/mouse console. Vendors wrap it in different brands — iDRAC, iLO, XClarity, Supermicro IPMI — but the operational primitives are similar:
ipmitool -I lanplus -H 10.21.30.41 -U ADMIN chassis power status
ipmitool -I lanplus -H 10.21.30.41 -U ADMIN chassis power cycle
ipmitool -I lanplus -H 10.21.30.41 -U ADMIN sol activate
ipmitool -I lanplus -H 10.21.30.41 -U ADMIN chassis bootdev pxe options=persistentlanplus matters. It selects IPMI 2.0's encrypted LAN interface rather than the older, much weaker protocol implementation. It does not magically make IPMI safe, but it is the minimum sane transport.
Redfish is the modern API
Redfish replaces fragile vendor screen-scraping with HTTPS and JSON. Most current BMCs expose it under /redfish/v1:
curl -sk -u "ADMIN:$BMC_PASSWORD" https://10.21.30.41/redfish/v1/Systems/1 | jq '.Boot.BootSourceOverrideTarget'
curl -sk -u "ADMIN:$BMC_PASSWORD" -H 'content-type: application/json' -d '{"BootSourceOverrideTarget":"Pxe","BootSourceOverrideEnabled":"Once"}' -X PATCH https://10.21.30.41/redfish/v1/Systems/1The exact member names vary by vendor. Read the schema instead of assuming every vendor spells the same concept the same way. Redfish is easier to automate than raw IPMI, but it is still powerful, so authenticate, authorize, and audit it like a root shell.
A BMC is not a management afterthought
BMC credentials ship with infamous defaults, and the management interface often bridges networks in ways operators do not expect. Put BMCs on a dedicated management network, isolate them from tenants, give every machine unique credentials, restrict source addresses, and patch firmware deliberately. A compromised BMC is permanent physical access without the travel.
The console lies sometimes
Remote KVM and serial-over-LAN are both "console," but they are not identical. KVM shows what the video output would show; SOL exposes the serial device. GRUB, the kernel, and systemd all need explicit serial configuration if you expect installer output over SOL. Missing output often means the machine is fine and your console path is wrong.
Field notes
- Test power control before you need it; some BMCs require licenses for remote KVM but still permit Redfish and power operations.
power cycleis notpower reset: cycle removes power, reset acts like the reset button.- One-off PXE boot settings are safer than persistent settings during installation loops.
- Record BMC MAC addresses and switch ports. Hardware replacement becomes archaeology without them.
- Never expose IPMI directly to the internet. Shodan already knows more vendor defaults than you do.
Was this lesson helpful?