BSD 3 development
[unix-history] / usr / man / man1 / dmesg.1m
CommitLineData
8594a067
BJ
1.TH DMESG 1M
2.SH NAME
3dmesg \- collect system diagnostic messages to form error log
4.SH SYNOPSIS
5.B /etc/dmesg
6[ \- ]
7.SH DESCRIPTION
8.I Dmesg
9looks in a system buffer for recently printed diagnostic messages
10and prints them on the standard output.
11The messages are those printed by the system when device (hardware) errors occur
12and (occasionally) when system tables overflow non-fatally.
13If the
14.B \-
15flag is given, then
16.I dmesg
17computes (incrementally) the new messages since the last time it
18was run and places these on the standard output.
19This is typically used with
20.IR cron (8)
21to produce the error log
22.I /usr/adm/messages
23by running the command
24.IP
25/etc/dmesg \- >> /usr/adm/messages
26.LP
27every 10 minutes.
28.SH FILES
29.ta 2i
30/usr/adm/messages error log (conventional location)
31.br
32/usr/adm/msgbuf scratch file for memory of \- option
33.SH BUGS
34The system error message buffer is of small finite size. As
35.I dmesg
36is run only every few minutes, not all error messages
37are guaranteed to be logged. This can be construed as a blessing rather
38than a curse.
39.PP
40Error diagnostics generated immediately before a system crash will
41never get logged.