Hi all,

I have set a PairWithWindow rule as follows,

 

 

type=PairWithWindow

ptype=RegExp

pattern=(.+)-(.+) Transport Layer Failure in FAC-(.+)-(.+)
\(majorServiceAffecting\),ifIndex=(.+)

desc= $1-$2 Transport Layer Failure in FAC-$3-$4
\(majorServiceAffecting\),ifIndex=$5

action=write - $1-$2 Transport Layer Failure in FAC-$3-$4
\(majorServiceAffecting\),ifIndex=$5

ptype2=RegExp

pattern2=(.+)-(.+) Loss Of Signal in FAC-(.+)-(.+)-(.+)
\(criticalServiceAffecting\),ifIndex=(.+)

desc2=$1-$2 Loss Of Signal in FAC

action2 =  ????   #how to write pattern desc and pattern2 desc ????

window=5

 

 

 

for example :

#perl /usr/local/sbin/sec.pl -conf=snmptt_test_sec.cfg -input=-

EN-15454 Transport Layer Failure in
FAC-5-1(majorServiceAffecting),ifIndex=4098

NY-15454 Transport Layer Failure in FAC-21-1
(majorServiceAffecting),ifIndex=4098

 

 

I can get the string as follow:

EN-15454 Transport Layer Failure in
FAC-5-1(majorServiceAffecting),ifIndex=4098 and NY-15454 Transport Layer
Failure in FAC-21-1 (majorServiceAffecting),ifIndex=4098

 

Can anyone give me some advice on what to do please?

 

 

Andrew

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to