Centos 6 下面配置netconsole
1. rsyslog server 端
vim /etc/rsyslog.conf (打开如下注释)
$ModLoad imudp
$UDPServerRun 514
$ModLoad imtcp
$InputTCPServerRun 514
service rsyslog restart (重启syslong服务器)
2. client(被记录的服务器)
dmesg -n 8 (运行dmesg)
vi /etc/sysconfig/netconsole
SYSLOGADDR=rsyslog 服务器的地址
重启netconsole
service netconsole restar