old-www/HOWTO/Remote-Serial-Console-HOWTO/test-console.html

378 lines
5.3 KiB
HTML

<HTML
><HEAD
><TITLE
>Test the console</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Remote Serial Console HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Reboot and test"
HREF="test.html"><LINK
REL="PREVIOUS"
TITLE="Re-create saved console settings"
HREF="recreate-ioctl-save.html"><LINK
REL="NEXT"
TITLE="Where to next from here?"
HREF="end.html"></HEAD
><BODY
CLASS="SECTION"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Remote Serial Console HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="recreate-ioctl-save.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 8. Reboot and test</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="end.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECTION"
><H1
CLASS="SECTION"
><A
NAME="TEST-CONSOLE"
></A
>8.3. Test the console</H1
><P
>Dial in from a machine, perhaps using
<SPAN
CLASS="APPLICATION"
>Minicom</SPAN
>.</P
><DIV
CLASS="EXAMPLE"
><A
NAME="TEST-CONSOLE-SESSION"
></A
><P
><B
>Example 8-1. Dialing into a serial console</B
></P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>localhost bash$</TT
> <B
CLASS="COMMAND"
>minicom</B
></PRE
></FONT
></TD
></TR
></TABLE
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
><TT
CLASS="COMPUTEROUTPUT"
>Initializing modem
Welcome to minicom 1.83.1
Press ALT-Z for help on special keys
AT S7=45 S0=0 L1 V1 X4 &#38;C1 E1 Q0
OK</TT
>
<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>D</B
> <SPAN
CLASS="GUIMENUITEM"
>remote.example.edu.au-ttyS0</SPAN
>
<SPAN
CLASS="GUILABEL"
>Dialing: remote.example.edu.au-ttyS0 At: 1234-5678</SPAN
>
<SPAN
CLASS="GUILABEL"
>Connected. Press any key to continue</SPAN
>
<B
CLASS="KEYCAP"
>Any</B
>
<TT
CLASS="COMPUTEROUTPUT"
>CONNECT 115200/V34/LAPM/V42BIS/33600:TX/33600:RX</TT
></PRE
></FONT
></TD
></TR
></TABLE
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
><B
CLASS="KEYCAP"
>Enter</B
>
<TT
CLASS="COMPUTEROUTPUT"
>/etc/issue says "All your base are belong to us".</TT
>
<TT
CLASS="PROMPT"
>remote.example.edu.au ttyS0 login:</TT
> <TT
CLASS="USERINPUT"
><B
>user</B
></TT
>
<TT
CLASS="PROMPT"
>Password:</TT
> <TT
CLASS="USERINPUT"
><B
>********</B
></TT
>
<TT
CLASS="COMPUTEROUTPUT"
>Message of the day is "be careful out there".</TT
>
<TT
CLASS="PROMPT"
>remote bash$</TT
> <B
CLASS="COMMAND"
>stty -a</B
>
<TT
CLASS="COMPUTEROUTPUT"
>speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = &#60;undef&#62;;
eol2 = &#60;undef&#62;; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
-echoctl -echoke</TT
>
&#8230;
<TT
CLASS="PROMPT"
>remote bash$</TT
> <B
CLASS="COMMAND"
>logout</B
></PRE
></FONT
></TD
></TR
></TABLE
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
><TT
CLASS="COMPUTEROUTPUT"
>NO CARRIER</TT
>
<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>X</B
>
<SPAN
CLASS="GUIMENU"
>Leave Minicom?</SPAN
> <SPAN
CLASS="GUIMENUITEM"
>Yes</SPAN
>
<SPAN
CLASS="GUILABEL"
>Resetting modem</SPAN
></PRE
></FONT
></TD
></TR
></TABLE
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>localhost bash$</TT
></PRE
></FONT
></TD
></TR
></TABLE
></DIV
><P
>Interestingly the <B
CLASS="COMMAND"
>stty -a</B
> command, used to
display the terminal settings, reports that the link from the modem
to the serial console is 9600<SPAN
CLASS="ABBREV"
>bps</SPAN
>. The
<TT
CLASS="LITERAL"
>CONNECT</TT
> message reports that link between the
two modems operates at 33600<SPAN
CLASS="ABBREV"
>bps</SPAN
>. The constant
speed modem-computer link is a very useful feature of the Hayes
<SPAN
CLASS="ACRONYM"
>AT</SPAN
>-style modems: the calling computer need not
know in advance the line speed of the called serial console.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="recreate-ioctl-save.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="end.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Re-create saved console settings</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="test.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Where to next from here?</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>