NetConsole: Difference between revisions
From KVM
No edit summary |
(fix typo) |
||
Line 21: | Line 21: | ||
to <code>/etc/rc.d/rc | to <code>/etc/rc.d/rc.local</code> |
Latest revision as of 16:54, 11 November 2010
To set up a network console, add the following command to /etc/rc.d/rc.local
:
/sbin/modprobe netconsole netconsole=@/eth0,12345@10.0.0.1/00:E0:81:2B:0C:C1
Where the mac address is the destination nc listener and 12345 is the port number for listenning.
To run the log client, issue the command:
nc -dul 12345
on the client machine, 12345 is the port number from above.
It also helps to disable sync logging by changing /etc/syslog.conf
from:
*.info;mail.none;authpriv.none;cron.none /var/log/messages
to
*.info;mail.none;authpriv.none;cron.none -/var/log/messages
and to add
echo 9 > /proc/sysrq-trigger
to /etc/rc.d/rc.local