old-www/HOWTO/Remote-Serial-Console-HOWTO/upload-logging.html

253 lines
3.6 KiB
HTML

<HTML
><HEAD
><TITLE
>Disable logging to 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="Uploading files from a serial console"
HREF="upload.html"><LINK
REL="PREVIOUS"
TITLE="Uploading files from a serial console"
HREF="upload.html"><LINK
REL="NEXT"
TITLE="ASCII upload and cat"
HREF="upload-cat.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="upload.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Appendix B. Uploading files from a serial console</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="upload-cat.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECTION"
><H1
CLASS="SECTION"
><A
NAME="UPLOAD-LOGGING"
></A
>B.1. Disable logging to console</H1
><P
>Before attempting to upload or download files it is a good
idea to prevent messages from appearing on the console. These
messages will corrupt files moved using <B
CLASS="COMMAND"
>cat</B
> and
will cause <SPAN
CLASS="APPLICATION"
>Xmodem</SPAN
> and similar protocols
to take much, much longer.</P
><P
>Alter your system's configuration to give
<SPAN
CLASS="APPLICATION"
>klogd</SPAN
> the <TT
CLASS="LITERAL"
>-c 1</TT
>
parameter, inhibiting the display of kernel messages directly to
the console. Kernel messages will still go to the system
logger.</P
><DIV
CLASS="FIGURE"
><A
NAME="AEN3363"
></A
><P
><B
>Figure B-1. Supressing kernel messages to the console in Red Hat
Linux</B
></P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>bash#</TT
> <B
CLASS="COMMAND"
>vi /etc/sysconfig/syslog</B
></PRE
></FONT
></TD
></TR
></TABLE
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
>KLOGD_OPTIONS="-2 -c 1"</PRE
></FONT
></TD
></TR
></TABLE
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>bash#</TT
> <B
CLASS="COMMAND"
>/etc/init.d/syslog restart</B
></PRE
></FONT
></TD
></TR
></TABLE
></DIV
><P
>Also modify the system logger's configuration not to send
messages to the console. Edit
<TT
CLASS="FILENAME"
>/etc/syslog.conf</TT
>, altering lines sending
output to <TT
CLASS="FILENAME"
>/dev/console</TT
>.
Send this output to a file instead.</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="upload.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="upload-cat.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Uploading files from a serial console</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="upload.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><SPAN
CLASS="ACRONYM"
>ASCII</SPAN
> upload and <B
CLASS="COMMAND"
>cat</B
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>