View Single Post

   
  #1 (permalink)  
Old 01-04-2008, 06:44 PM
Jim Shaffer
 
Posts: n/a
Default Re: Errpt Question Please

On Thu, 3 Jul 2003 11:03:33 -0700, "Tiglath" <tiglath@tiglath.net>
wrote:

>
>I run AIX 4.3.3.3 and I need to disable ent1 and ent2 from reporting errors
>in her errpt error log.


The only way to do that is to let them log the errors, then use
errclear
to get rid of them. If you add an error notification object, see the
article on error notification in the pubs, for these resource names,
and have that object
clear the errors, this will have the effect of not logging those
errors, except you'll
see missing sequence numbers where those errors were.

The objects might look like:

errnotify:
en_persistenceflg = 1
en_resource = "ent1"
en_method = "/home/mine/mymethod $1 $6"

Then mymethod might look like:

# Remove this error from ent1 or ent2.
#
# input:
# $1 - sequence number of the error.
# $2 - resource name.
#
if [[ "$2" != "ent1" && "$2" != "ent2" ]]
then # error.
exit 1
fi

# Remove this error.
errclear -l$1 0
exit 0
Jim Shaffer
home: jjs@jjshaffer.net
work: jjs@austin.ibm.com
Reply With Quote