Redirect Server Console to Serial port in Linux

Redirecting the Server Console to the Serial Port Using Linux Operating System:

Although the server’s ILOM has a redirection feature that allows you to do this, you can also redirect the server console to the serial port by doing the following for either Red Hat (RHEL) or Suse (SLES): 


1. Add the following line in /etc/inittab file (for SLES, this line might already exist but be commented out. If so, simply remove the "#" at the beginning of the line): 

s0:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt102
 

2. Add the following line in the /etc/securetty file: 

ttyS0
 

3. Change the /etc/grub.conf file as described below.


a. Comment the line that begins with "splashimage ...", like this: 

# splashimage=(hd0,0)/grub/splash.xpm.gz
 

b. Add console=ttyS0 console=tty0 at the end of the line that starts with ""kernel /vmlinuz ..., for example: 


kernel /vmlinuz-2.6.9 ro root=LABEL=/ debug console=ttyS0,9600 console=tty0
 

c. Optionally, to have the grub boot menu display at the serial console, add the following lines before the splashimage line: 


serial --unit=0 --speed=9600

terminal --timeout=10 serial console

 

0 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks