Linux Scroll

Just another WordPress.com site

AIX – errpt

errpt – Generates a report of logged errors.

To display a complete summary report:

# errpt

To display a complete detailed report:

# errpt -a

-a Displays information about errors in the error log file in detailed format.

To display a detailed report of all errors logged for the error identifier E19E094F:

# errpt  -a  -j E19E094F

-j ErrorID

To display a detailed report of all errors logged in the past 24 hours:

# errpt  -a  -s mmddhhmmyy

-s StartDate
(current month, day, hour, minute, and year)-24

To list error-record templates for which logging is turned off for any error-log entries:

# errpt  -t  -F log=0

-F
alert=0
Selects error-record templates with the Alert field set to False.
alert=1
Selects error-record templates with the Alert field set to True.
log=0
Selects error-record templates with the Log field set to False.
log=1
Selects error-record templates with the Log field set to True.
report=0
Selects error-record templates with the Report field set to False.
report=1
Selects error-record templates with the Report field set to True.

To view all entries from the alternate error-log file /var/ad/ras/errlog.alternate:

#errpt  -i /var/adm/ras/errlog.alternate

-i Uses the error log file specified by the File variable. If this flag is not specified, the value from the error log configuration database is used.

To view all hardware entries from the alternate error-log file /var/adm/ras/errlog.alternate:

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

-d H (hardware), S (software), 0 (errlogger command messages), and U (undetermined)

To display a detailed report of all errors logged for the error label ERRLOG_ON:

# errpt  -a  -J ERRLOG_ON

-J ErrorLabel

To display a detailed report of all errors and group duplicate errors:

# errpt -aD

-D Consolidates duplicate errors.

To display a detailed report of all errors logged for the error labels DISK_ERR1 and DISK_ERR2 during the month of August:

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

-s StartDate
-e EndDate

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: