errpt: Generates a Report of Logged Errors



Share this article :

The errpt command generates an error report from entries in an error log. It includes flags for selecting errors that match specific criteria. By using the default condition, you can display error log entries in the reverse order they occurred and were recorded. By using the -c (concurrent) flag, you can display errors as they occur. If the -i flag is not used with the errpt command, the error log file processed by errpt is the one specified in the error log configuration database. The default summary report contains one line of data for each error. You can use flags to generate reports with different formats.

• 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 display a detailed report of all errors logged in the past 24 hours, where the mmddhhmmyy string equals the current month, day, hour, minute, and year, minus 24 hours.

errpt  -a  -s mmddhhmmyy

• 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 alternate error-log file /var/adm/ras/errlog.alternate, enter:

errpt  -i /var/adm/ras/errlog.alternate -d H

• 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 a detailed report of all errors logged for the error labels DISK_ERR1 and DISK_ERR2 during the month of August, enter:

errpt -a -J DISK_ERR1,DISK_ERR2 -s 0801000004 -e 0831235904"

Related posts

Find AIX Command by Keyword
Mount CDROM in AIX
Disable Sendmail in AIX
Get the Access Control Information of a File in AIX
© 2017 ITsiti. All Rights Reserved
Powered by KEEM