I've wrestled with getting a remote management card working 100% with Linux and decided to document the process in case someone else was trying to do the same thing. I did this on a
. The specs of the server probably have no bearing to making this work. This should also adapt with many other set ups.
The goal of this project was to build a server where I had remote capabilities such as cycling power, monitoring vital statistics like CPU temp and fan speed, and gain console control during the boot process so I could make changes to the BIOS settings remotely. You also gain the advantage that if network services like telnet or SSH become unavailable, you can likely still use the remote console.
Some manufacturers include this capability into their equipment. Many of them call it "Lights Out" administration. The Tyan equipment I purchased needed a card added and set up. If anyone is interested in the hardware installation including the firmware updates, let me know and I'll write it up. This document is strictly dealing with the Linux setup.
The most important part of this process is to ensure the BIOS has console redirection enabled in the BIOS. I had to enable that, set it to COM2 and 19200 for the speed.
In Linux, you need to start a getty process for ttyS0. Do this by creating a file called /etc/event.d/ttyS0 with the following contents:
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /sbin/getty 19200 ttyS0You then must pass a few kernel parameters at boot time to ensure that you have a console running for the console monitor and keyboard as well for ttyS0. Edit the file /boot/grub/menu.lst and modify the line that looks like this:
# defoptions=quiet splash
to this:
# defoptions=quiet splash console=ttyS0,19200 console=tty0
This makes certain that any future Ubuntu updates will keep these parameters intact. Also note that the order makes a difference for these. Which ever is last will see the services start and stop while both will see the same "console" type messages like driver errors. To make these new changes active, run this from the command line:
$ sudo update-grub
If you recheck the menu.lst file, you will see your new options towards the end of the file for your "kernel" entries. An example might look like:
kernel /vmlinuz-2.6.22.9 root=/dev/md2 ro quiet splash console=ttyS0,19200 console=tty0
If you reboot the machine and everything is in order, you should be able to watch and interrupt the boot process from any remote software compatible with your card as well as your console monitor and keyboard. In my case, I used the Tyan Management Console that shipped with the card. It runs on both Linux and Windows.
There are many other tools that can be used with this particular SMDC.
OPEN-IPMI is one that allows you to do all the neat remote management tricks, but from a Linux command line. Much of this can be scripted to do tasks such as gathering statistics for graphing through SNMP or other means.
Craig Deering
Network Engineer
Astro Shapes, Inc. -
Aluminum ExtrusionsWebsite -
http://www.astroshapes.com