admin_grundlagen:netconsole
Inhaltsverzeichnis
netconsole: Kernel Logs übers Netz schicken
temporär
modinfo netconsole | grep parm modprobe netconsole 'netconsole=@/wlp0s20f3,6666@192.168.1.138/'
rebootfest
- /etc/modprobe.d/netconsole.conf
options netconsole netconsole=@/wlp0s20f3,6666@192.168.1.138/
Zu früh im Bootvorgang für netconsole:
- /etc/modules-load.d/netconsole.conf
netconsole
rm /etc/modules-load.d/netconsole.conf
Besser: warten bis Netzwerk funktioniert 1)
- /etc/systemd/system/netconsole.service
[Unit] Description=dmesg to network [Service] Type=oneshot ExecStartPre=/usr/bin/sh -c 'until ping -q -c1 192.168.1.138; do sleep 1; done' ExecStart=/usr/sbin/modprobe -v netconsole [Install] WantedBy=network-online.target
netconsole empfangen
nc -k -q0 -v -u -l 6666
Alternativ netconsole an Port 514/UDP senden und mit rsyslog empfangen.
1)
Problem: was passiert, wenn das Netzwerkinterface aus geht?
admin_grundlagen/netconsole.txt · Zuletzt geändert: 2026/01/28 19:57 von ingo_wichmann
