public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* netconsole not working on 2.6.17.6
@ 2006-09-16 14:51 Benjamin Schindler
       [not found] ` <452291C3.8090503@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Schindler @ 2006-09-16 14:51 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

Hi

I'm unsuccesfully trying to get networking to work - I've got two boxes that 
can ping each other: 192.168.0.101 and 192.168.0.102 - I load the netconsole 
module:

modprobe netconsole 
netconsole=6666@192.168.0.102/eth0,6666@192.168.0.101/00:02:44:34:5d:f6

In dmesg I get: 

netconsole: local port 6666
netconsole: local IP 192.168.0.102
netconsole: interface eth0
netconsole: remote port 6666
netconsole: remote IP 192.168.0.101
netconsole: remote ethernet address 00:02:44:34:5d:f6
netconsole: network logging started

I start wireshark/tcpdump whatever - and load a few modules just to produce 
some kernel messages. However, noething leaves the wire but I get all the 
messages in dmesg.

What's wrong here?

Thanks
Benjamin Schindler

P.s. please cc me as I'm not subscribed to this list

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

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

* Re: netconsole not working on 2.6.17.6
       [not found] ` <452291C3.8090503@gmail.com>
@ 2006-10-04 11:26   ` Benjamin Schindler
  2006-10-04 16:05     ` Matt Mackall
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Schindler @ 2006-10-04 11:26 UTC (permalink / raw)
  To: Alan Menegotto, linux-kernel; +Cc: mpm

On Tuesday 03 October 2006 18:37, you wrote:
> Benjamin Schindler wrote:
> > Hi
> >
> > I'm unsuccesfully trying to get networking to work - I've got two boxes 
that 
> > can ping each other: 192.168.0.101 and 192.168.0.102 - I load the 
netconsole 
> > module:
> >
> > modprobe netconsole 
> > netconsole=6666@192.168.0.102/eth0,6666@192.168.0.101/00:02:44:34:5d:f6
> >
> > In dmesg I get: 
> >
> > netconsole: local port 6666
> > netconsole: local IP 192.168.0.102
> > netconsole: interface eth0
> > netconsole: remote port 6666
> > netconsole: remote IP 192.168.0.101
> > netconsole: remote ethernet address 00:02:44:34:5d:f6
> > netconsole: network logging started
> >
> > I start wireshark/tcpdump whatever - and load a few modules just to 
produce 
> > some kernel messages. However, noething leaves the wire but I get all the 
> > messages in dmesg.
> >
> > What's wrong here?
> >
> > Thanks
> > Benjamin Schindler
> >
> > P.s. please cc me as I'm not subscribed to this list
> >   
> Are you pointing to the correct MAC? Have you tried to compile the 
> netconsole as built-in?
> 
Yes, I'm pointing at the correct MAC, but since wireshark doesn't see in the 
networl, I doubt anything actually is sent. 
No, I have not tried to compile netconsole into the kernel because of 
flexibility. Anyway, I have investiaged further:
I ran this systemtap script: 

probe module("netconsole").function("write_msg@drivers/net/netconsole.c") {
        printf("WriteMsg called\b")
}

Once this script was run, I rmmod and modprobe'd my wireless-module a few 
times to generate some dmesg output, but according to systemtap, this 
function never gets called. 
So, either the call to register_console in netconsole fails, is wrong or there 
is a but in register_console

Thanks
Benjamin Schindler

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

* Re: netconsole not working on 2.6.17.6
  2006-10-04 11:26   ` Benjamin Schindler
@ 2006-10-04 16:05     ` Matt Mackall
  2006-10-04 17:10       ` Benjamin Schindler
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Mackall @ 2006-10-04 16:05 UTC (permalink / raw)
  To: Benjamin Schindler; +Cc: Alan Menegotto, linux-kernel

On Wed, Oct 04, 2006 at 01:26:54PM +0200, Benjamin Schindler wrote:
> On Tuesday 03 October 2006 18:37, you wrote:
> > Benjamin Schindler wrote:
> > > Hi
> > >
> > > I'm unsuccesfully trying to get networking to work - I've got two boxes 
> that 
> > > can ping each other: 192.168.0.101 and 192.168.0.102 - I load the 
> netconsole 
> > > module:
> > >
> > > modprobe netconsole 
> > > netconsole=6666@192.168.0.102/eth0,6666@192.168.0.101/00:02:44:34:5d:f6
> > >
> > > In dmesg I get: 
> > >
> > > netconsole: local port 6666
> > > netconsole: local IP 192.168.0.102
> > > netconsole: interface eth0
> > > netconsole: remote port 6666
> > > netconsole: remote IP 192.168.0.101
> > > netconsole: remote ethernet address 00:02:44:34:5d:f6
> > > netconsole: network logging started
> > >
> > > I start wireshark/tcpdump whatever - and load a few modules just to 
> produce 
> > > some kernel messages. However, noething leaves the wire but I get all the 
> > > messages in dmesg.
> > >
> > > What's wrong here?
> > >
> > > Thanks
> > > Benjamin Schindler
> > >
> > > P.s. please cc me as I'm not subscribed to this list
> > >   
> > Are you pointing to the correct MAC? Have you tried to compile the 
> > netconsole as built-in?
> > 
> Yes, I'm pointing at the correct MAC, but since wireshark doesn't see in the 
> networl, I doubt anything actually is sent. 
> No, I have not tried to compile netconsole into the kernel because of 
> flexibility. Anyway, I have investiaged further:
> I ran this systemtap script: 
> 
> probe module("netconsole").function("write_msg@drivers/net/netconsole.c") {
>         printf("WriteMsg called\b")
> }
> 
> Once this script was run, I rmmod and modprobe'd my wireless-module a few 
> times to generate some dmesg output, but according to systemtap, this 
> function never gets called. 
> So, either the call to register_console in netconsole fails, is wrong or there 
> is a but in register_console

The usual problem is that the console log level is set too low.

-- 
Mathematics is the supreme nostalgia of our time.

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

* Re: netconsole not working on 2.6.17.6
  2006-10-04 16:05     ` Matt Mackall
@ 2006-10-04 17:10       ` Benjamin Schindler
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Schindler @ 2006-10-04 17:10 UTC (permalink / raw)
  To: Matt Mackall; +Cc: Alan Menegotto, linux-kernel

On Wednesday 04 October 2006 18:05, Matt Mackall wrote:
> On Wed, Oct 04, 2006 at 01:26:54PM +0200, Benjamin Schindler wrote:
> > On Tuesday 03 October 2006 18:37, you wrote:
> > > Benjamin Schindler wrote:
> > > > Hi
> > > >
> > > > I'm unsuccesfully trying to get networking to work - I've got two
> > > > boxes
> >
> > that
> >
> > > > can ping each other: 192.168.0.101 and 192.168.0.102 - I load the
> >
> > netconsole
> >
> > > > module:
> > > >
> > > > modprobe netconsole
> > > > netconsole=6666@192.168.0.102/eth0,6666@192.168.0.101/00:02:44:34:5d:
> > > >f6
> > > >
> > > > In dmesg I get:
> > > >
> > > > netconsole: local port 6666
> > > > netconsole: local IP 192.168.0.102
> > > > netconsole: interface eth0
> > > > netconsole: remote port 6666
> > > > netconsole: remote IP 192.168.0.101
> > > > netconsole: remote ethernet address 00:02:44:34:5d:f6
> > > > netconsole: network logging started
> > > >
> > > > I start wireshark/tcpdump whatever - and load a few modules just to
> >
> > produce
> >
> > > > some kernel messages. However, noething leaves the wire but I get all
> > > > the messages in dmesg.
> > > >
> > > > What's wrong here?
> > > >
> > > > Thanks
> > > > Benjamin Schindler
> > > >
> > > > P.s. please cc me as I'm not subscribed to this list
> > >
> > > Are you pointing to the correct MAC? Have you tried to compile the
> > > netconsole as built-in?
> >
> > Yes, I'm pointing at the correct MAC, but since wireshark doesn't see in
> > the networl, I doubt anything actually is sent.
> > No, I have not tried to compile netconsole into the kernel because of
> > flexibility. Anyway, I have investiaged further:
> > I ran this systemtap script:
> >
> > probe module("netconsole").function("write_msg@drivers/net/netconsole.c")
> > { printf("WriteMsg called\b")
> > }
> >
> > Once this script was run, I rmmod and modprobe'd my wireless-module a few
> > times to generate some dmesg output, but according to systemtap, this
> > function never gets called.
> > So, either the call to register_console in netconsole fails, is wrong or
> > there is a but in register_console
>
> The usual problem is that the console log level is set too low.

I did 'echo 9 4 1 7 > /proc/sys/kernel/printk' and nothing changed. I also 
tried to set the log level to 9 using sysrq (dmesg confirmed), but I still 
don't get any messages
Thanks

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

end of thread, other threads:[~2006-10-04 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16 14:51 netconsole not working on 2.6.17.6 Benjamin Schindler
     [not found] ` <452291C3.8090503@gmail.com>
2006-10-04 11:26   ` Benjamin Schindler
2006-10-04 16:05     ` Matt Mackall
2006-10-04 17:10       ` Benjamin Schindler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox