Unix Technical Forum

Errpt error

This is a discussion on Errpt error within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi!! I am having a problem with errpt command, when executed it throws an error:- logread: unexpected end of ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 08:02 AM
Ashutosh
 
Posts: n/a
Default Errpt error

Hi!!

I am having a problem with errpt command, when executed it throws an
error:-

logread: unexpected end of file
Unable to process the error log file /var/adm/ras/errlog.
The supplied error log file is not valid: /var/adm/ras/errlog.

I cleared the error log file, two days back with "errclear 0"
Now interesting thing is, the size of /var/adm/ras/errlog right now is
zero while it is mentioned in manual pages of errclear that

Note: The errclear command clears the specified entries, but does not
decrease the error log file size.

Now I dont know what to do....

Any suggestions???????

Thanks & Regards,
Ashutosh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 08:02 AM
steven_nospam at Yahoo! Canada
 
Posts: n/a
Default Re: Errpt error

It sounds like your errlog file is corrupted. On our test server, I
renamed the errlog file and touched a new file. Using errpt returned
these errors:

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.

Here's a suggestion to try:

After I renamed the existing errlog file, I rebooted the system. The
errdemon was restarted and the system generated a brand new errlog file
without the corruption.

However, I noticed that when I did this on our test system, it still
managed to pull up error messages I entered in the error log using
"errlogger" command from PRIOR to the shutdown. So I suspect that the
actual data for the errlog file may be found in another file.

I know from the man pages that errpt also reads the diag_log file so it
may be that you have another file that is corrupted and is affecting
the errlog results.

Steve

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 08:02 AM
Bela
 
Posts: n/a
Default Re: Errpt error

Ashutosh <hiashutosh@gmail.com> wrote:
A> Hi!!
A>
A> I am having a problem with errpt command, when executed it throws an
A> error:-
A>
A> logread: unexpected end of file
A> Unable to process the error log file /var/adm/ras/errlog.
A> The supplied error log file is not valid: /var/adm/ras/errlog.
A>
A> I cleared the error log file, two days back with "errclear 0"
A> Now interesting thing is, the size of /var/adm/ras/errlog right now is
A> zero while it is mentioned in manual pages of errclear that
A>
A> Note: The errclear command clears the specified entries, but does not
A> decrease the error log file size.
A>
A> Now I dont know what to do....
A>
A> Any suggestions???????
A>
A> Thanks & Regards,
A> Ashutosh
A>

1) Stop the error daemon
2) rm /var/adm/ras/errlog
3) Start the error daemon

--
"... I shook my family tree, and a bunch of NUTS fell out ..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 08:02 AM
steven_nospam at Yahoo! Canada
 
Posts: n/a
Default Re: Errpt error

Bela,

You may want to specify the stopsrc/startsrc commands to use for the
errdemon. I tried it as a subsystem and group but both failed, so I
just figured it would be easier to reboot.

Btw, I also saw this warning in the man pages about stopping the error
reporting daemon when I was looking up info for Ash. This was specific
to the "errstop" command, and since I could not find an errstart
command, I didn't bother mentioning it:

"Normally the errdemon command is started automatically during system
initialization and stopped during system shutdown. The error log should
never be stopped during normal operations. The errstop command should
only be used during special circumstances when it is absolutely
required and the consequences are clearly understood."

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com