Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1017815.1
Update Date:2009-01-26
Keywords:

Solution Type  Technical Instruction Sure

Solution  1017815.1 :   Sun Fire[TM]: Setting Up Serial Login with Sun[TM] Linux  


Related Items
  • Sun Fire V60x Server
  •  
  • Sun Fire V65x Server
  •  
  • Sun Fire V20z Server
  •  
  • Sun Linux Platform
  •  
  • Sun LX50 Server
  •  
Related Categories
  • GCS>Sun Microsystems>Servers>x64 Servers
  •  

PreviouslyPublishedAs
229046


Description
Remote system administrators can log into and manage the server even
without the network interface if they can log into the server via the
serial port.
This article explains how to  configure the server so that it can be administered via the serial console; it can be run "headless," that is, with no monitor or keyboard attached.
The technique described in this article can be used with Sun Fire[TM]
Servers V65x, V60x, and V20z, with Sun[TM] Fire Compute Grid Racks Systems V60x
and V20z, and with the Sun[TM] LX50 Server.


Steps to Follow
To configure Sun [TM] Linux to allow logins via the serial port, you must make certain that the port speed specified in the file /etc/inittab is the same as the port speed specified in the boot loader config file.
Note: This will provide only you with a console login, but does not cover the OS messages that can also be seen through the console at boot time. For additional information on this, see technical instruction <Document: 1010463.1>.

Edit this file:

      /etc/inittab

By inserting this line:

     co:2345:respawn:/sbin/agetty -h -t 60 ttyS0 9600 vt100

Example:
 
     5:2345:respawn:/sbin/mingetty tty5
     6:2345:respawn:/sbin/mingetty tty6
     #  Serial port login
     co:2345:respawn:/sbin/agetty -h -t 60 ttyS0 9600 vt100


     Note #1: The example uses a baud rate of 9600. You can use a different baud rate, but it should match the port speed of the BIOS or console redirection, if either is redirected to the serial port.

     Note #2: If BIOS redirection to the serial port is enabled, the prompt might not be available. to get around this problem, turn off the BIOS redirection and restart the server.

     Note #3: If you are configuring the Sun Fire Server LX50/v60x/v65x you must use ttyS1, instead of ttyS0 as the default serial port.

     Note #4: If you are using Red Hat Enterprise Linux 3 on v20z/v40z, you may have to omit handshaking (-h) for console to work properly.

Next, you will need to add root access for the console that was just created. Append to the end of the file:

     /etc/securetty

the following line:

     ttyS0

(If you are using a LX50/v60x/v65x, use 'ttyS1' instead.)

After you have edited the files and saved the changes, restart init by
issuing the following command:

     /sbin/init q

You should now have a command login prompt when connected to the port via
your terminal emulator, or through the Service Processor with the platform console enabled.


Related Topics:
Sun Fire[TM] LX50/v60x/v65x/v20z/v40z: Linux OS Console Redirection Setup - 71430.
Sun Fire [TM] v20z/v40z: Enabling Serial over LAN to console to the Linux OS, via the Service Processor (SP) - 78039

Product
Sun LX50 Server
Sun Linux 5.0.3 Platform
Sun Linux 5.0 02/03
Sun Linux 5.0
Sun Fire V20z Server
Sun Fire V60x Server
Sun Fire V65x Server

serial port, console redirection, serial, terminal, Linux, login, serial login, redirect, redirection
Previously Published As
74452

Change History
Date: 2006-01-23
User Name: 25440
Action: Update Canceled
Comment: *** Restored Published Content *** SSH AUDIT
Version: 0
Date: 2006-01-23
User Name: 25440
Action: Update Started
Comment: SSH AUDIT
Version: 0

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback