errpt script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting errpt script
# 1  
Old 08-01-2008
errpt script

I am looking for a script out there that can email me when my AIX server throws and error that is picked up by errpt -a

Thanks

SeaCros
# 2  
Old 08-01-2008
/opt/scripts/do_arbitrary_and-or_poorly-specified_things.sh:
Code:
errpt -a
if [ $? -ne 0 ]; then
    /opt/scripts/send_arbitrary_and-or_poorly-specified_emails.sh
fi

# 3  
Old 09-22-2008
Thanks.
I will try it out.
# 4  
Old 10-01-2008
Can you be more specific on this one? I also would like to email them to a few admins and just send the most recent error in the errpt.

Thanks

Quote:
Originally Posted by BMDan
/opt/scripts/do_arbitrary_and-or_poorly-specified_things.sh:
Code:
errpt -a
if [ $? -ne 0 ]; then
    /opt/scripts/send_arbitrary_and-or_poorly-specified_emails.sh
fi

# 5  
Old 10-02-2008
I am sorry to say, but this script won't help anything.
THis script only tests if "errpt -a" is working or not, but not if a new error arrived in the errpt.
You are better off trying this script:
http://www.stanford.edu/~ssklar/errreporter/errreporter
or write something your own, comparing the timestamps of entries since last <n> minutes.

You can also use errnotify, described here:
http://publib.boulder.ibm.com/infoce...ror_notice.htm

I only thing is, I had problems with errnotify in this case (errpt), because always when an error comes in, the script that will send you a mail for example, is triggered.
We needed a script, that will just put the errors alltogether in one mail, which happened in the last interval to avoid spam. We also needed to differ between PERM H(ardware) errors and other types of H errors.

Maybe you can also get something useful out of using "errpt -c" piping to some processing which will work like a tail -f on errpt. If entries occure, you can always have a filter up or something that will work with the output.
# 6  
Old 10-06-2008
Quote:
Originally Posted by seacros
Can you be more specific on this one? I also would like to email them to a few admins and just send the most recent error in the errpt.

Thanks
I suspect that you missed the joke.

If you can provide specific information on the inputs you have and the outputs you'd like to get, I can be of significantly more assistance.
# 7  
Old 10-06-2008
Yeah I missed that one. I was looking for a solution and the joke flew over my head.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX errpt

Hi, just a short question: Is a error label always equal to a error identifier? So it does not matter if i search for an specific identifier (errpt -j) or a specific label (errpt -J)? Regards Ron (5 Replies)
Discussion started by: -=XrAy=-
5 Replies

2. AIX

errpt not giving a result

my system get rebooted by its self after its came up i try to check the error log P690/>errpt | more Cannot open error message catalog /usr/lib/nls/msg/en_US/codepoint.cat. The error report will still run, but it will not have explanatory messages P690/>ls -lrt... (1 Reply)
Discussion started by: thecobra151
1 Replies

3. Emergency UNIX and Linux Support

errpt in AIX

The below is my code in general according to AIX books To display a detailed report of all errors logged in the past 24 hours, enter: errpt -a -s mmddhhmmyy where the mmddhhmmyy string equals the current month, day, hour, minute, and year, minus 24 hours. I have tried the... (2 Replies)
Discussion started by: Sounddappan
2 Replies

4. AIX

errpt message

Hello I have this message from errpt command IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION BFE4C025 0803155809 P H sysplanar0 UNDETERMINED ERROR BFE4C025 0802155509 P H sysplanar0 UNDETERMINED ERROR BFE4C025 0801155209 P H sysplanar0 UNDETERMINED ERROR BFE4C025 ... (6 Replies)
Discussion started by: lo-lp-kl
6 Replies

5. AIX

errpt grep

Hi All, I have multiple error on my AIX 53. How do I trim the report per date only? Please help. Thanks, itik (3 Replies)
Discussion started by: itik
3 Replies

6. UNIX for Dummies Questions & Answers

errpt display option?

HI When I run errpt, since there is such a long list of them I cant seem to see the most recent. There must be some kind of tag for this? I checked man but had no luck. Any help? Many thanks. IN. (2 Replies)
Discussion started by: Incremental
2 Replies

7. AIX

Exclude junks from errpt

I've got an issue where some application is reporting errors and keeps writing to errpt every 10 seconds, filling it up. While trying to find out what application it is, is there anyway to exclude these errors from reporting to errpt? BD194808 0306120707 N U FFST BD194808 ... (1 Reply)
Discussion started by: kiem
1 Replies

8. AIX

How to add an entry in the errpt

Hi, I'm looking for a tool or a command to generate entries in the AIX error log (errpt). I know the command errlogger but I need to simulate HARDWARE or TEMP entries for test purpose. Anyone knows something that can help me ? Thanks (1 Reply)
Discussion started by: fwirbel
1 Replies

9. UNIX for Dummies Questions & Answers

errpt

Hello World, When I issue the errpt command 1581762B 0826133303 T H hdisk1 DISK OPERATION ERROR C14C511C 0826133303 T H scsi0 ADAPTER ERROR I found these two unusual errors, wat exactly do these mean ? Im on an aix box. Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies

10. UNIX for Dummies Questions & Answers

errpt on aix entry.

hi, i have an entry in errpt on aix... any help? --------------------------------------------------------------------------- LABEL: AMQFFST3 IDENTIFIER: 8FED25B9 Date/Time: Fri Nov 15 07:20:05 Sequence Number: 2715 Machine Id: 000694DF4C00 Node Id: ... (1 Reply)
Discussion started by: yls177
1 Replies
Login or Register to Ask a Question