I would do it this way, which works

example without discrimators

0xffff163f R Aprisma.EventCondition, \
 "{ VARDATA 114 } == { I 1110 }", "0xffff1641 -:-", \
 "{ VARDATA 114 } == { I 1111 }", "0xffff1642 -:-", \
 "{ VARDATA 114 } == { I 2110 }", "0xffff1643 -:-", \
 "{ VARDATA 114 } == { I 2111 }", "0xffff1644 -:-", \
 "default", "0xffff1640 -:-"
0xffff1640 E 20
0xffff1641 E 20 A 3,0xffff1641
0xffff1642 E 20 A 3,0xffff1642
0xffff1643 E 20 A 2,0xffff1643
0xffff1644 E 20 A 2,0xffff1644


Regards,  Erwin

-----Original Message-----
From: Helko Bachmann [mailto:[email protected]] 
Sent: woensdag 18 maart 2009 15:53
To: spectrum
Subject: [spectrum] syntax for EventDisp-file --> Integer comparison

hello,

i must create an eventdisp-file for a device within our network. the
device send traps include diffent alarm-id's (Integer32), e.g. 1110,
2110 or other.
now, i must create a major alarm for few alarm-id's and create a
critical alarm for other alarm-id's. 

my problem is the eventdisp-syntax for the alarm-id's:

0x00001000 E 50 R Aprisma.EventCondition, "{v 114} == {I
(1110|1111|1112|1113|1114)}", "0x00001001 -:-",  "{v 114} == {I
(2110|2111|2112|2113|2114)}", "0x00001002 -:-" 

0x00001001 = critical event (generate alarm)
0x00001002 = major event (generate alarm)

this example is not function, but i dont know why.... :(
(i have try so many different versions..., may be is not possible)

can anyone help? thanks in advance :)
---
To unsubscribe from spectrum, send email to [email protected] with the
body: unsubscribe spectrum [email protected]

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

Reply via email to