Professional Documents
Culture Documents
Overview
The following article documents some of the tips for connecting the serial
port of a UNIX Server (Sun SPARC / Linux) to the serial port (console) of
a Sun Server. This is often helpful and even necessary when performing
routine administrative tasks or initiating critical and/or long running
processes. Access to the serial console for many Sun servers is the only
way to perform administrative tasks given these servers do not come with
a frame buffer (i.e. video card).
There are times when I need to initiate a long running job but cannot
remain connected to the network for the duration of its execution. In cases
like this, I can connect to the serial console of the Sun server, initiate the
job and disconnect. The job will remain running even when I drop my
connection to the serial port. I can, at a later time, reconnect to the serial
console to determine the results.
The first two sections of this article explain the applications (programs)
used from a Sun SPARC server and then a Linux server for obtaining a
serial console connection. The remainder of this article attempts to
describe the details (cables, connections, adapters) of obtaining a serial
console connection to/from different Sun SPARC servers.
From a Sun machine, if you wanted to access the serial console of another
computer (ie. Linux, Sun, etc.), you would use the tip command. The
configuration file for tip is /etc/remote. In most cases, you will be
concerned with the hardwire entry in this file. First, connect the two
machines by their serial ports (null modem if required), and from the Sun
SPARC (Solaris) machine, type the following at the command-line to
connect to the serial console of the other machine (Solaris / Linux):
# tip hardwire
cuab:dv=/dev/cua/b:br#2400
dialup1|Dial-up system:\
:pn=2015551212:tc=UNIX-2400:
hardwire:\
:dv=/dev/term/b:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
tip300:tc=UNIX-300:
tip1200:tc=UNIX-1200:
tip0|tip2400:tc=UNIX-2400:
tip9600:tc=UNIX-9600:
tip19200:tc=UNIX-19200:
UNIX-300:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#300:tc=dialers:
UNIX-1200:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#1200:tc=dialer
s:
UNIX-2400:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#2400:tc=dialer
s:
UNIX-9600:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#9600:tc=dialer
s:
UNIX-19200:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#19200:tc=diale
rs:
VMS-300|TOPS20-300:\
:el=^Z^U^C^S^Q^O:du:at=hayes:ie=$@:oe=^Z:br#300:tc=dialers:
VMS-1200|TOPS20-1200:\
:el=^Z^U^C^S^Q^O:du:at=hayes:ie=$@:oe=^Z:br#1200:tc=dialers:
dialers:\
:dv=/dev/cua/b:
--------------------------------------------------------------------
The attributes are:
+----------------------------------------------
-------------------------+
| A - Serial Device : /dev/ttyS0
|
| B - Lockfile Location : /var/lock
|
| C - Callin Program :
|
| D - Callout Program :
|
| E - Bps/Par/Bits : 9600 8N1
|
| F - Hardware Flow Control : Yes
|
| G - Software Flow Control : No
|
|
|
| Change which setting?
|
+----------------------------------------------
-------------------------+
# cu -l /dev/ttyS0 -s 9600
You may need to hit enter before you see the login prompt.
If you see a bunch of weird characters, then you probably
specified the wrong speed.
# tip hardwire
Sun E450
# tip hardwire
Sun E250
# tip hardwire
Sun V100
o You will NOT need to use a null modem adapter for either
the DB25 or DB9 connections.
o Communication settings for both DB25 and DB9
connections:
Bits per second: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow Control: Hardware
• Connecting from a Sun V100
o ...
o ...
o ...