Skip to content

Instantly share code, notes, and snippets.

@csamsel
Last active December 28, 2015 12:59
Show Gist options
  • Save csamsel/7504657 to your computer and use it in GitHub Desktop.
Save csamsel/7504657 to your computer and use it in GitHub Desktop.
script to configure and start linux netconsole to remote ip
dmesg -n debug
mount -t configfs none /sys/kernel/config
modprobe netconsole
mkdir -p /sys/kernel/config/netconsole/target1
cd /sys/kernel/config/netconsole/target1
echo eth0 > dev_name
echo 192.168.2.101 > remote_ip
echo 1 > enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment