Mailinglist Archive: opensuse (1047 mails)

< Previous Next >
[opensuse] Can't get remote kernel logging working.
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Fri, 22 Jan 2016 05:03:20 +0100 (CET)
  • Message-id: <alpine.LSU.2.20.1601220447540.32684@Grypbagne.inyvabe>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



I'm trying to log kernel messages on another machine to log a possible kernel crash. I got this working about two months ago on these same machines, running 13.1, but now it fails.

On the receiving machine I run as root:

netcat -u -l 6666 | tee -a remote_log

On sending machine I do, for testing:

netcat -u 192.168.1.15 6666
Hello world
^C


And it is duly printed on the other side. So far, so good.

I verify remote machine data:

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:0D:05:17:FC
inet addr:192.168.1.15 Bcast:192.168.1.255 Mask:255.255.255.0
...



Now I do:

modprobe netconsole
cd /sys/kernel/config/netconsole/
mkdir target1
cd target1/

echo "00:03:0D:05:17:FC" > remote_mac
echo 6666 > remote_port
echo 192.168.1.15 > remote_ip
cat dev_name
echo 1 > enabled


I get this response in the log, verifiying that it is enabled:

<0.6> 2016-01-22 04:42:57 Telcontar kernel - - - [191845.722453] console
[netcon0] enabled
<0.6> 2016-01-22 04:42:57 Telcontar kernel - - - [191845.722456] netconsole:
network logging started
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577279] netpoll:
netconsole: local port 6665
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577283] netpoll:
netconsole: local IPv4 address 0.0.0.0
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577284] netpoll:
netconsole: interface 'eth0'
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577285] netpoll:
netconsole: remote port 6666
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577287] netpoll:
netconsole: remote IPv4 address 192.168.1.15
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577288] netpoll:
netconsole: remote ethernet address 00:03:0d:05:17:fc
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577291] netpoll:
netconsole: local IP 192.168.1.14
<0.6> 2016-01-22 04:43:05 Telcontar kernel - - - [191854.577293] netconsole:
network logging started



Then I cause an event, like plugin in/out an USB stick, to cause messages to be printed - but nothing gets on the remote. Why? I must have done something wrong, but I can't see it.



- -- Cheers

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlahqg8ACgkQtTMYHG2NR9U7fACcCOrzV085lHl9fZ3IApiSbgSI
NEMAn2QVmZ9dbZWf/GtUqeNjqUZu70xX
=BHUK
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups