我已netconsole使用此处给出的说明进行安装。
dmesg | grep netconsole 说一切都好,但我不会那么容易相信:)
如何让 Ubuntu 生成一些内核消息以查看是否netconsole真的有效并将所有内容发送到另一台计算机?
logger -p kern.alert "test message" # this apparently talks to syslog only
echo "test message" >/dev/kmsg
Run Code Online (Sandbox Code Playgroud)
并写了一个小程序,只是做了一个段错误。所有这些都在 中生成了条目/var/log/kern.log,但不在 中dmesg,并且没有通过复制netconsole到另一台计算机。
那么我能做些什么来看看 netconsole 是否真的有效?
Ubuntu 12.04
Run Code Online (Sandbox Code Playgroud)