Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX Error Reports

Status
Not open for further replies.

beardyboy

Technical User
Jul 26, 2002
19
0
0
GB
Instead of manually typing "errpt" at the command line to check the error reports on an AIX machine. IS there a simple way to automate this so that the machine alerts me when a new entry is written to it?


Thanks in advance.
 
Have errpt run everytime you log in.

Write a script that runs errpt command.

Run the script in your .profile eg. - /home/mydir/showerr.sh

That should work...
 
You can create your own error notifications so when they show up in the errpt you can be paged or emailed.
 
beardyboy,

bjverzel in this forum sent me a script that runs every five minutes (or at whatever interval you want) to see if an error has been logged. I've got it set to start when my system boots.

What it does is count the number of errors from the last time it ran and if there is a difference in the number, it sends an email to whomever you want.

I'll try to get it into an FAQ here in the next few days.

 
Hello beardyboy,
You can create file (for example /tmp/err_notify):

--> begin err_notify file

errnotify:
en_name = "mail_error"
en_persistenceflg = 1
en_label = ""
en_class = "H"
en_method = "errpt -a -l $1 | mail -s 'errlog H - $9' root@localhost"

errnotify:
en_name = "mail_error"
en_persistenceflg = 1
en_label = ""
en_class = "U"
en_method = "errpt -a -l $1 | mail -s 'errlog U - $9' root@localhost"

errnotify:
en_name = "mail_error"
en_persistenceflg = 1
en_label = ""
en_class = "O"
en_method = "errpt -a -l $1 | mail -s 'errlog O - $9' root@localhost"

<-- end err_notify file

line started <tab> key

Then add to the ODM:
odmadd /tmp/err_notify

You can read:

Sorry for my english

palo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top