Solved: Re: [opensuse] How to attach to existing tty
Lovely, thanks Jan. This is just what I needed (the boot option). Thanks for the extra info too, always good to get a better understanding. Cheers, Simon "You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." — Naguib Mahfouz ----- Original Message ---- From: Jan Engelhardt <jengelh@linux01.gwdg.de> To: Simon Roberts <thorpflyer@yahoo.com> Cc: opensuse list <opensuse@opensuse.org> Sent: Tuesday, December 5, 2006 1:36:19 PM Subject: Re: [opensuse] How to attach to existing tty The right way:
I want to attach to the output stream of an existing terminal. I want to "tee" that output to the serial device so I can send it to another machine that will log and save the output. The terminal in question is created and started by "the system". It is acutally /dev/tty10, and is receiving log messages about kernel activity.
One or more of these: * Boot with `console=ttyS0 console=tty0` to copy kernel messages to both ttyS0 and the regular console. This should DTRT for Oops and Panics * use net console And optionally: * configure syslog to write to both ttyS0 and tty10 (if you need that)
Other option suggested was to take a photo of the screen, but the messages disappear off the top of the page (due to the recursive nature of the thing) before I can switch terminals, so this isn't a very useful option.
There exist no recursive panics. What you see must be a recursive oops.
Come to think of it, the last time I had a kernel panic, it was under Solaris, and I used "kdb" to capture it I think (too long ago to remember clearly!) Is there a similar facility in Linux? (Solaris/kdb starts the whole darn kernel under a debugger from the OBP (forth) boot prom prompt).
There is also a KDB for Linux, but I am not sure if it is built into the kernel by default (gives me a compile error blech). -`J' -- ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Simon Roberts wrote:
Lovely, thanks Jan. This is just what I needed (the boot option). Thanks for the extra info too, always good to get a better understanding.
Cheers, Simon
"You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." Naguib Mahfouz
----- Original Message ---- From: Jan Engelhardt <jengelh@linux01.gwdg.de> To: Simon Roberts <thorpflyer@yahoo.com> Cc: opensuse list <opensuse@opensuse.org> Sent: Tuesday, December 5, 2006 1:36:19 PM Subject: Re: [opensuse] How to attach to existing tty
The right way:
I want to attach to the output stream of an existing terminal. I want to "tee" that output to the serial device so I can send it to another machine that will log and save the output. The terminal in question is created and started by "the system". It is acutally /dev/tty10, and is receiving log messages about kernel activity.
One or more of these:
* Boot with `console=ttyS0 console=tty0` to copy kernel messages to both ttyS0 and the regular console. This should DTRT for Oops and Panics
* use net console [snip]
Does anyone have a how to or more info on "net console" I did a quick google and did not seem to find anything I thought was relevant... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Does anyone have a how to or more info on "net console" I did a quick google and did not seem to find anything I thought was relevant...
/usr/src/linux/Documentation/networking/netconsole.txt -`J' -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Jan Engelhardt
-
Michael Letourneau
-
Simon Roberts