You are here

howto fix 0315-180 logread: UNEXPECTED EOF on errpt log

so i was trying to view the error report for an aix machine but i got some unexpected output.

# errpt -a
0315-180 logread: UNEXPECTED EOF
0315-171 Unable to process the error log file /var/adm/ras/errlog.
0315-132 The supplied error log is not valid: /var/adm/ras/errlog.


the steps below are what i did to fix it courtesy of ITToolBOX

#cd /var/adm/ras
#/usr/lib/errstop
# /usr/lib/errdemon
0315-180 logread: UNEXPECTED EOF
0315-171 Unable to process the error log file /var/adm/ras/errlog.
errdemon:
0315-001 Failure to open the logfile '/var/adm/ras/errlog' for writing.
Possible causes are:
1. The file exists but the invoking process does not have write
   permission.
2. The file exists but the directory '/var/adm/ras' does not have write
   permission.
3. The file exists but it is not a valid error logfile.  Remove
   the file and restart the errdemon.
4. The file does exist and the directory '/var/adm/ras' does not have enough
   space available. The minimum logfile size is 8192 bytes.
# rm -rf errlog
# /usr/lib/errdemon
#errlogger "This is a test"
#errpt -a
#/usr/lib/errdemon -l
#errpt

and it worked!