We use a ruleset that has node down trapd to input 1 on a Reset On Match.
Input 2 on the Reset on Match has a node up trap as the resetting event. The
Reset on Match uses the Origin for comparison. Delay time is set to 5
minutes.
I test it by using the following script. The sleep is a little more than 5
minutes. It seems to work but I'd like to see other examples myself.
/usr/OV/bin/nv6000_smit run_event -n'1' -e'AA_EV' -h'tnvcorp02' -s'N' \
-d'SIMULATE BLAH DOWN FOR MORE THAN 5 MINUTE(S). A PAGE SHOULD
OCCUR.'
/usr/OV/bin/nv6000_smit run_event -n'1' -e'NDWN_EV' -h'blah.blah.com' -s'N'
-d'This is a test.'
sleep 303
/usr/OV/bin/nv6000_smit run_event -n'1' -e'NUP_EV' -h'blah.blah.com' -s'N'
-d'This is a test.'
Ray.
-----Original Message-----
From: Scott.Bursik@fritolay.com [mailto:Scott.Bursik@fritolay.com]
Sent: Friday, March 09, 2001 11:51 AM
To: nv-l@tkg.com
Subject: [NV-L] Ruleset Question
NetView 6.0.1 AIX 4.3.3
I am attempting to create a rule and perhaps I am making harder than it
needs to
be. I have a smartset that contains node X when its IP status is anything
but
critical. I have another smartset that contains node X when its IP Status is
Critical. The node can only be in one smartset at any given time. I want to
run
a script that I have written when the node has been down for 5 minutes and
do
nothing if it comes back up within the 5 minutes. If it comes back up after
the
5 minutes I need to run another script that tells me the node is back up.
Thanks in advance
Scott Bursik
|