2012年11月2日 星期五

sol setup on Dell poweredge servers

from BIOS: redirect serial to com2

on ipmi-enabled Linux machine
enable console redirect on kernel
--> modify grub.conf
-->  serial --unit=0 --speed=115200
-->  terminal --timeout=10 serial console
add kernel option --> console=tty0 console=ttyS1,115200n8 

add "ttyS1" to /etc/securetty

and below line to /etc/inittab
co:2345:respawn:/sbin/agetty -h -L 19200 ttyS1 vt100

connect to the Linux server via ipmitool
ipmitool -I lanplus -H IPMI_HOST -U IPMI_ACCOUNT -P IPMI_ACCOUNT_PASSWD sol activate


please note, since I redirect the serial to com2, I have to set kernel option to ttyS1.
If I redirect serial to com1, kernel option for console is supposed to be ttyS0

--init=0 is used to define the initial index for serial port.
when set to 0, ttyS0 is com1.