[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061128152451.GA31626@localdomain>
Date: Tue, 28 Nov 2006 17:24:52 +0200
From: Dan Aloni <da-x@...atomic.org>
To: Linux Kernel List <linux-kernel@...r.kernel.org>
Cc: kdb@....sgi.com
Subject: [RFC&PATCH] KDB over the network using netconsole
Hello,
Today I had to debug a kernel of a remote machine that has no IPMI
or serial console attached to it. So I sat for two hours and cooked
a support for interacting with KDB purely over the network, by
extending netconsole.
The result is very adhoc-ish in nature, but it works nicely. Your
comments regarding how to go further with this will be appreciated.
Should I'm too busy working on other things, perhaps someone else will
find a way to work toward a cleaner, accpetable implementation.
The usage is quite simple:
at the client
-------------
./netkdb [remote_ip]
at the server
-------------
insmod netconsole netconsole=[params]
enter KDB through crash or otherwise.
This client above works as a netconsole client, and in addition to that,
every keystroke will translate to a UDP packet sent back to the machine.
The client assumes that the local UDP port is 9353 and the port at the
machine running KDB is 6656.
I've attached the patch and the client util. The patch works for kdb 4.4
and Linux 2.6.18 on x86_64.
- Dan
View attachment "netkdb.c" of type "text/x-csrc" (3469 bytes)
View attachment "netkdb.diff" of type "text/plain" (4565 bytes)
Powered by blists - more mailing lists