Chapter 1
Server Diagnostics
1-17
▼
Check the Message Buffer
1. Log in as superuser.
2. Type the
dmesg
command:
The
dmesg
command displays the most recent messages generated by the
system.
▼
View System Message Log Files
The error logging daemon,
syslogd
, automatically records various system
warnings, errors, and faults in message files. These messages alert you to system
problems such as a device that is about to fail.
The
/var/adm
directory contains several message files. The most recent messages
are in the /
var/adm/messages
file. After a period of time (usually every ten days),
a new
messages
file is automatically created. The original contents of the
messages
file are rotated to a file named
messages.1
. Over a period of time, the
messages are further rotated to
messages.2
and
messages.3
, and then deleted.
1. Log in as superuser.
2. Type:
3. If you want to view all logged messages, type:
#
dmesg
#
more /var/adm/messages
#
more /var/adm/messages*