Last active
December 28, 2015 12:59
-
-
Save csamsel/7504657 to your computer and use it in GitHub Desktop.
script to configure and start linux netconsole to remote ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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