Wednesday 28 August 2013

AIX Error logging

This procedure provides the steps that are required to check the AIX error log.
After the terminal window is open, simply type
errpt |pg (pg permits you to display one page at a time)
The columns that you need to review are:
TIMESTAMP
(Column #2)
Provides a shortcut version of the date and time.
Example:0827041513
0827 = August 27th
0415 = 4:15 AM OR 04:15 hours
13 = the year, 2013


T
(Column #3)
Displays the type code for the error:
I = Informational
P = Permanent
T = Temporary
Warning:  If a type code of P (Permanent) appears, contact the appropriate AIX Support.


C
(Column #4)
Displays a descriptor of the environment in which the error has occurred.
The codes are:
H = Hardware
S = Software
O = Operating Environment

Few Example Command

To display a complete summary report, enter:
errpt

To display a complete detailed report, enter: 
errpt -a

To display a detailed report of all errors logged for the error identifier E19E094F, enter: 
errpt -a -j E19E094F

To list error-record templates for which logging is turned off for any error-log entries, enter: 
errpt -t -F log=0

To view all entries from the alternate error-log file /var/adm/ras/errlog.alternate, enter: 
errpt -i /var/adm/ras/errlog.alternate

To view all hardware entries from the error-log file enter: 
errpt -d H

To view all software entries from the error-log file enter:
errpt -d S

To display a detailed report of all errors logged for the error label ERRLOG_ON, enter: 
errpt -a -J ERRLOG_ON

To display a detailed report of all errors and group duplicate errors, enter:
errpt -aD

To display the error-record template repository, enter:
errpt -t

To disable the reporting of the ERRLOG_OFF event (error ID 192AC071), type the following:
errupdate <Enter>
=192AC071: <Enter>
Report=False <Enter>
<Ctrl-D>
<Ctrl-D>

To enable the reporting of the ERRLOG_OFF event (error ID 192AC071) in case it was turned off, type the following:
errupdate <Enter>
=192AC071: <Enter>
Report=True <Enter>
<Ctrl-D>
<Ctrl-D>

To delete the ERRLOG_OFF event (error ID 192AC071) from the Error Record Template Repository, type the following:
errupdate <Enter>
-192AC071:
<Ctrl-D>
<Ctrl-D>

To disable the logging of the ERRLOG_OFF event (error ID 192AC071), type the following:
errupdate <Enter>
=192AC071: <Enter>
Log=False <Enter>
<Ctrl-D>
<Ctrl-D>

To delete all entries from the error log, enter:
errclear 0

To delete all entries from the error log older than 3 days, enter:
errclear 3

To create an operator message for system drive reconfiguration, enter:
errlogger system drive reconfigured

To delete all entries in the error log classified as software errors, enter:
errclear -d S 0

To clear all entries from the alternate error-log file /var/adm/ras/errlog.alternate, enter:
errclear -i /var/adm/ras/errlog.alternate 0

0 blogger-disqus:

Post a Comment