LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sending system logs to serial port (https://www.linuxquestions.org/questions/linux-server-73/sending-system-logs-to-serial-port-898691/)

CJ Chitwood 08-21-2011 10:50 PM

Sending system logs to serial port
 
Hello all,

I'm having trouble finding specific answers. I want my system logs (e.g. the messages that run during a verbose startup) to be output to the normal place (for instance, tty1 or wherever) as well as to /dev/ttyS0 or /dev/ttyS1. I have found how to enable a console on ttyS0, and have done so to successfully log in and run commands, etc., but I have been unable to find how to pipe the logs to the serial port for to watch them during startup, shutdown, etc.

End result, I want to be able to connect another computer/terminal to my com port, and watch logs on it while doing normal activities on the Linux host. e.g., if the system is so unresponsive as to appear locked up, and no keystrokes on my keyboard work (including CTL-ALT-F1 or CTL-ALT-DEL), I want to see on the serial-connected device if the system really is that hosed before I pull the power to reset it.

Thanks in advance for any advice you can give...

macemoneta 08-21-2011 11:12 PM

Here you go.

CJ Chitwood 08-22-2011 06:35 PM

Thanks! I have been having trouble getting answers out of Google. I don't know if I've been too specific with my terms or if I just don't know the words that describe what I'm actually trying to do. It doesn't help that so many hits for "console" actually mean "terminal".

I've got some readin' up to do! Thanks again!


All times are GMT -5. The time now is 02:38 AM.