Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


admin_grundlagen:netconsole

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

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