[NTLUG:Discuss] dmesg
MadHat
madhat at unspecific.com
Fri Dec 14 10:01:18 CST 2001
At 09:27 AM 12/14/2001 -0600, you wrote:
>The file /var/log/dmesg is actually the output of the "dmesg" command
>which is executed just after bootup from /etc/rc.d/rc.sysinit:
>
>dmesg > /var/log/dmesg
>
>And thus contains only messages generated when the system boots.
>After the system is up and running, messages continue to be looged
>to ?????? and can be viewed with the dmesg command. For example,
>NIC errors from my 3c595 card tend to show up there. One that I
>get is generated by /usr/src/linux/drivers/net/3c59x.c:
>
>printk(KERN_DEBUG"%s: Transmit error, Tx status register
>%2.2x.\n",dev->name,tx_status);
That is going to depend on how you have your syslogd configured and what
you tell syslogd to do with kernel.debug priority messages. By default
kern.* is commented out in many linux distro's, so the messages get dropped
by the syslog daemon. But most of the data comes in .info and will get
logged to /var/log/messages. I usually add a line to mine (/etc/syslog.conf)
*.* /var/log/all
so I have a log of all syslog messages, but I have to watch it closely to
watch its size...
I also like to have a
*.* /dev/tty8
so I can ALT-F8 or CTRL-ALT-F8 and see what is going on right then.
>These messages do not show up in /var/log/messages.
>
>George
>
>_______________________________________________
>http://www.ntlug.org/mailman/listinfo/discuss
--
MadHat at unspecific.com
More information about the Discuss
mailing list