Hello everyone,

 

I need some help with event rules.  This is currently what I have in the
$SPECROOT/custom/Events/EventDisp file:

 

0x0210cd2  R CA.SplitDataUsingPattern,
2,".+\\.(.*?\\..*?\\..*?\\..*?)\\..*?$ <file:///\\..*%3f$> ", 0xfff01005,
500

0xfff01005 R CA.EventCondition, "default" , "0xfff01006 1-99:101-199,501:8"

 

This works well in that the first line parses the network address out of
varbind 2, using the SplitDataUsingPattern custom rule created by Mike
Doyle, and assigns it to variable value 501 in event 0xfff01005.  Next,
event 0xfff01006 is created and variable value 501 is assigned to variable
value 8.  Then in my EventAdmin EventDisp file for the SBGW, I have
0xfff01006 registered so that when this event comes in, it asserts an alarm
against the model that matches the network address in variable value 8.  

 

All of this works well.  Now I need to make a few minor adjustments.  I need
to either set or clear the alarm based on one of 15 values for varbind 1.
I know how to build the logic, I'm just not sure if I should do it in the
$SPECROOT/custom/Events/EventDisp file or in the EventModel EventDisp file
in SBGW.  

 

 

This is how I think it should look:

 

0x0210cd2  R CA.SplitDataUsingPattern,
2,".+\\.(.*?\\..*?\\..*?\\..*?)\\..*?$ <file:///\\..*%3f$> ", 0xfff01005,
500 \

"({v 1} == {I 1} || {v 1} == {I 3}   || {v 1} == {I 6}|| {v 1} == {I 7}|| {v
1} == {I 9}|| {v 1} == {I 13}|| {v 1} == {I 14}|| {v 1} == {I 15})" ,
"0xfff01008 1-99:101-199,501:8", \

"({v 1} == {I 2})" , "0xfff01009 1-99:101-199,501:8", \

"default" , "0xfff01010 1-99:101-199,501:8"

 

 

I will create the sets and clears in ECE and then register 0xfff01008,
0xfff01009, and 0xfff01009 in the EventAdmin EventDisp file.  Can someone
verify that this will do what I'm expecting?  And if not, suggest the
correct format.  Thanks in advance for any assistance.

 

Calvin


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to