All of lore.kernel.org
 help / color / mirror / Atom feed
* Viewing dmesg output after crash
@ 2011-04-26  9:48 Amit Virdi
  2011-04-26  9:59 ` Bradley D. Thornton
  2011-04-26 18:36 ` Leo Prasath
  0 siblings, 2 replies; 3+ messages in thread
From: Amit Virdi @ 2011-04-26  9:48 UTC (permalink / raw)
  To: linux-newbie

Hi

I'm debugging a system crash. I got OOPS message and found the buggy 
piece of code. I wish I had the output of dmesg just before the crash. 
In other words, I want to view the last messages collected by the ring 
buffer used by dmesg.

The log messages are certainly being appended to some logfile in the 
RAM. How can I find the address where the logfile is being created or 
how can I extract the logfile?

Thanks n Regards
Amit Virdi
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Viewing dmesg output after crash
  2011-04-26  9:48 Viewing dmesg output after crash Amit Virdi
@ 2011-04-26  9:59 ` Bradley D. Thornton
  2011-04-26 18:36 ` Leo Prasath
  1 sibling, 0 replies; 3+ messages in thread
From: Bradley D. Thornton @ 2011-04-26  9:59 UTC (permalink / raw)
  Cc: linux-newbie

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hi Amit,

Truly, the easiest thing you can do is connect to the console via serial
connection during boot and dump it that way.

The output you're getting from the boot probably isn't making it to
logfiles yet.

On 04/26/2011 02:48 AM, Amit Virdi wrote:
> Hi
> 
> I'm debugging a system crash. I got OOPS message and found the buggy
> piece of code. I wish I had the output of dmesg just before the crash.
> In other words, I want to view the last messages collected by the ring
> buffer used by dmesg.
> 
> The log messages are certainly being appended to some logfile in the
> RAM. How can I find the address where the logfile is being created or
> how can I extract the logfile?
> 
> Thanks n Regards
> Amit Virdi
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

- -- 
Bradley D. Thornton
Manager Network Services
NorthTech Computer
TEL: +1.760.666.2703  (US)
TEL: +44.203.318.2755 (UK)
http://NorthTech.US

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Find this cert at x-hkp://pool.sks-keyservers.net

iQEcBAEBAwAGBQJNtpePAAoJEE1wgkIhr9j323AIAJNey7bRf/fcwW5/sfMqpSJx
kNYxksD03CrwCCwClzOXInxnMqQxgrx9DGEqX2DotOVB8nvfrXK+gmM7aIvdyA3P
MtiYKuDNLHtNKKXcM5/I7SLZh4hbJCs9H5/GXALCeHtfYfpfwZe/+HnpSbbI7Gkc
b3D2hANfvPJTLuv13l7j9kEx8PO4eBw5b17gh8jsG1HQUA7D1/BguIGQSpBiqowm
jdLMATQs6SU9WWDyQu9elGK1tKiWMMIIw/3O3c81VJU3fE0bY2q4EKySDkuDDHlF
pCg46AH6khq8N9qVaWLVikA9ebpTizaZRSRhNDPqewh/++H3buF3vOnmtWaDm1I=
=xEZF
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Viewing dmesg output after crash
  2011-04-26  9:48 Viewing dmesg output after crash Amit Virdi
  2011-04-26  9:59 ` Bradley D. Thornton
@ 2011-04-26 18:36 ` Leo Prasath
  1 sibling, 0 replies; 3+ messages in thread
From: Leo Prasath @ 2011-04-26 18:36 UTC (permalink / raw)
  To: Amit Virdi; +Cc: linux-newbie

I use netconsole which sends the kernel ring buffer updates to a
remote machine through UDP ..
And then you can use netcat command to dump the remote udp logs to a
file and view it.
I have never missed any log messages using this approach..

http://www.kernel.org/doc/Documentation/networking/netconsole.txt

My commands are :

in the client machine ( which crashes ):

modprobe netconsole netconsole=@/eth0,@128.105.102.217/

where the ip address "128.105.102.217" is the remote machine's ip
address. ( which captures logs )

in the remote machine I run the command :

netcat -u -l -p 6666 | tee crashlog

also, iptables --flush helped me remove the udp packet filters which
sometimes can filter out the netconsole udp messages.

thanks,
-Leo



On Tue, Apr 26, 2011 at 4:48 AM, Amit Virdi <amit.virdi@st.com> wrote:
> Hi
>
> I'm debugging a system crash. I got OOPS message and found the buggy piece
> of code. I wish I had the output of dmesg just before the crash. In other
> words, I want to view the last messages collected by the ring buffer used by
> dmesg.
>
> The log messages are certainly being appended to some logfile in the RAM.
> How can I find the address where the logfile is being created or how can I
> extract the logfile?
>
> Thanks n Regards
> Amit Virdi
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-26 18:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26  9:48 Viewing dmesg output after crash Amit Virdi
2011-04-26  9:59 ` Bradley D. Thornton
2011-04-26 18:36 ` Leo Prasath

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.