FirstServed Tech Blog - FirstServed and the Art of Server Tuning

Archive for the ‘BIOS’ Category

Dell PowerEdge R410 & CentOS 5.4 IPMI (bmc) configuration

Wednesday, November 18th, 2009

Hi,

If you want to configure a serial console on your Dell PowerEdge R410 (or R710) dedicated server with CentOS 5.4 (or 5.3 and probably also the Red Hat Enterprise systems) you can use these guidelines.
In the Bios:

Under "Serial Communication":
Serial Communication: On with Console Redirection via COM1
Serial Port Address: Serial Device1=COM2,Serial Device2=COM1
External Serial Connector: Serial Device2
Failsafe Baud Rate: 115200
Remote Terminal Type: VT100/VT220
Redirection After Boot: Enabled (so grub displays)

Then you configure Grub:

title CentOS (2.6.18-164.6.1.el5) Serial
root (hd0,0)
kernel /vmlinuz-2.6.18-164.6.1.el5 ro root=LABEL=/ console=tty0 console=ttyS0,115200n8
initrd /initrd-2.6.18-164.6.1.el5.img

This makes the kernel display it’s messages on screen and over the serial console.

In /etc/securetty append:

ttyS0
ttyS1

This way root can log in using the serial console.

Finally configure the inittab (/etc/inittab) and add the following line:

co:2345:respawn:/sbin/agetty ttyS0 115200 linux

Now reboot and enjoy pure serial console goodness over ip (ipmi).

(Oh, don’t forget to enable IPMI over lan in the iDrac configuration and to set a username, password and ip-address.
The iDrac 6 configuration flashes by when the server boots.)

Read BIOS dmi data in linux

Monday, January 7th, 2008

Use this command to read the BIOS dmi data in linux:
dmidecode

Reads mainboard type, bios version, memory banks, …

Dell function key escape sequences when using serial console

Thursday, May 10th, 2007

Anyone who has ever played around with serial console operation, be it over a serial cable or with an IPMI-like serial redirection over LAN, has known the joys of trying to find working alternatives to the function keys.  Since one of the things you’ll be likely to do with a serial console is to enter the BIOS setup, and entering the bios setup usually requires the use of F1, F2 or F10, this is a bit of a poser.

Luckily for us, Dell in it’s neverending wisdom has seen fit to display all necessary escape sequences for its Serial BIOS at boot time.  The only hitch is that this screen flashes by so quickly that it’s impossible to read unless you’ve been gifted with x-ray eyes.  Armed with the Print-Screen key and Photoshop, we did some twenty reboots of the server and were able to decipher the following shortcuts:

Dell Serial Bios keyboard shortcuts

F1      <ESC>1
F2      <ESC>2
F3      <ESC>3
F4      <ESC>4
F5      <ESC>5
F6      <ESC>6
F7      <ESC>7
F8      <ESC>8
F9      <ESC>9
F10     <ESC>0
F11     <ESC>!
F12     <ESC>@
Home    <ESC>h
End     <ESC>k
Insert  <ESC>+
Delete  <ESC>-
PageUp  <ESC>?
PageDn  <ESC>/
Use the <ESC><Ctrl><M> key sequence for <Ctrl><M>
Use the <ESC><Ctrl><H> key sequence for <Ctrl><H>
Use the <ESC><Ctrl><I> key sequence for <Ctrl><I>
Use the <ESC><Ctrl><J> key sequence for <Ctrl><J>
Use the <ESC><X><X> key sequence for <Alt><x>, where x is any letter key, and X is the upper case of that key

Note: Use your keypad for the <ESC>n sequences!