Friday, March 18, 2011

errpt / errpt daemon

When I tried to check errpt on an AIX 5.2 server, I got the following error.
# errpt
0315-132 The supplied error log is not valid: /var/adm/ras/errlog.
0315-180 logread: UNEXPECTED EOF
0315-171 Unable to process the error log file /var/adm/ras/errlog.

# ls -l /var/adm/ras/errlog
-rw-rw-r-- 1 root system 0 Mar 09 13:40 /var/adm/ras/errlog
Solution:

1. Stop errdaemon

# /usr/lib/errstop
2. Remove /var/adm/ras/errlog
# ls -l /var/adm/ras/errlog
-rw-rw-r-- 1 root system 0 Mar 09 13:40 /var/adm/ras/errlog
# rm /var/adm/ras/errlog
3. Restart errdaemon
# /usr/lib/errdemon
4. Now errpt is normal.
# errpt
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
9DBCFDEE 0318135809 T O errdemon ERROR LOGGING TURNED ON

No comments:

Post a Comment