AIX Error Logging

Error logging is provided through:
alog, errlog and syslog.

Display the contents of the boot log
alog -o -t boot

Display the contents of the console log
alog -o -t console

List all log types that alog knows
alog -L

Send a message to errlog
errlogger "Your message here"

Display the contents of the system error log
errpt (Add -a or -A for varying levels of verbosity)

Errors listed from errpt can be limited by the -d S or -d H options. S is software and H is hardware. Error types are (P)ermanent, (T)emporary, (I)nformational, or (U)nknown. Error classes are (H)ardware, (S)oftware, (O)perator, or (U)ndetermined.

Clear all errors up until x days ago.
errclear x

List info on error ID FE2DEE00 (IDENTIFIER column in errpt output)
errpt -aDj FE2DEE00

List all errors that happened today
errpt -s `date +%m%d0000%y`

To list all errors on hdisk0
errpt -N hdisk0

To list details about the error log
/usr/lib/errdemon -l

To change the size of the error log to 2 MB
/usr/lib/errdemon -s 2097152

syslog.conf line to send all messages to log file
*.debug /var/log/messages

syslog.conf line to send all messages to error log
*.debug errlog

To identify the error details from repository
errpt -t |grep 173C787F

To open the alternate error log file
errpt -i errlog

No comments:

Post a Comment