IPMI Notes -- unsorted

This is simply a place to keep some notes until I can get in here and organize them This is a totally useless thing to anyone but me, I assume, but I had to put it someplace.

apt-get install openipmi ipmitool libopenipmi0
modprobe ipmi_si
modprobe ipmi_devintf
echo ipmi_si >> /etc/modules
echo ipmi_devintf >> /etc/modules

ipmitool -I lan -U root -H sdr list

for ilo2 under HP, change "lan" to lanplus, ie

ipmitool -I lan -U root -H sdr list

-o list

sel # print system log
shell # interactive shell

isol info - serial over lan not enabled

chassis status

exec filename
sdr list # get a list of all sensor data
sel list # get a list of system logs

lan print

to set up serial over lan (SOL), first make sure your server is set up for it. In the BIOS (

In the operating system itself, you must enable serial going to the correct lan port in two places; grub2 and the running system (via inittab)

for inittab, assuming you are using the second serial port (ttyS1) at 19200 baud and wanting vt100 emulation, add the following to the bottom of /etc/inttab
S1:2345:respawn:/sbin/getty -L ttyS1 19200 vt100
then restart init with
init q

The following three BASH lines do this

cp /etc/inittab /etc/inittab.original
echo 'S1:2345:respawn:/sbin/getty -L ttyS1 19200 vt100' >> /etc/inittab
init q

That tells the runnign system to enable console redirection to ttyS1 (second serial port), so once the kernel is in control, you will have it. You can test this by remoting into the system at this point

However, if you also want console when grub is installed, add the following lines to /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS1,38400n8"
GRUB_SERIAL_COMMAND="serial --speed=19200 --unit=1 --word=8 --parity=no --stop=1"

then tell grub to reconfigure itself

# Following lines should work

cp /etc/default/grub /etc/default/grub2.original
echo 'GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS1,38400n8"' >> /etc/default/grub
echo 'GRUB_TERMINAL=serial' >> /etc/default/grub
echo 'GRUB_SERIAL_COMMAND="serial --speed=19200 --unit=1 --word=8 --parity=no --stop=1"' >> /etc/default/grub

NOTE: if you are using something other than the second serial port, you should change ttyS1 AND unit=1 to the correct values. For example, if you were to use the first serial port, use ttyS0 and --unit=0

ipmitool -I lanplus -U username -a -H sol activate
You will be at the SOL console. Pressing enter a couple of times should bring up the console.
When you are done, enter the two characters ~. (tilde followed by a period, or tilde-dot) to exit the SOL console

Last update:
2015-04-13 07:48
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.