I’ve long known that you can use IPMI (on compatible systems) for some nice lights-out management, like power control or reading system information that you’d see in the BIOS. But one thing that has always annoyed me is having to get a remote console on the box and wait for just the right second to press the right key to bring up the screen where I can change boot order.
Lo and behold, this is an IPMI feature! It’s implemented at least on some IBM servers I’m working with:
mawagner ~ $ ipmitool -H 172.16.10.1 -U USERID chassis bootdev Password: bootdev <device> [clear-cmos=yes|no] bootdev <device> [options=help,...] none : Do not change boot device order pxe : Force PXE boot disk : Force boot from default Hard-drive safe : Force boot from default Hard-drive, request Safe Mode diag : Force boot from Diagnostic Partition cdrom : Force boot from CD/DVD bios : Force boot into BIOS Setup floppy: Force boot from Floppy/primary removable media
mawagner ~ $ ipmitool -H 172.16.10.1 -U USERID chassis bootdev cdrom Password: Set Boot Device to cdrom
It appears that this will override settings on the next boot, but not make a persistent change. (You can, however, set the ‘persistent’ option.) Using bootdev none options=help lists out the available options, some of which are pretty interesting.