cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1820
Views
0
Helpful
1
Replies

EEM Won't Work

Hello all,

Can someone please tell me why this EEM won't work?

event manager applet test1 trap

event snmp oid .1.3.6.1.2.1.14.10.1.6 get-type exact entry-op eq entry-val "down" poll-interval 2

Basically, the event should be triggered if an ospf neighbor state is down.

Cheers

Carlton

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

This won't work for a lot of reasons.  For one, you cannot use a leading '.'.  Two, you have not put an instance here, and you're using a get-type of exact.  Finally, this object returns an integer not a string.  The value for "down" is 1.  This will work at the very least, but it's likely not what you want.  You will want to find the specific neighbor ID and route index:

event manager applet test1 trap

event snmp oid 1.3.6.1.2.1.14.10.1.6 get-type next entry-op eq entry-val 1 poll-interval 2

View solution in original post

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

This won't work for a lot of reasons.  For one, you cannot use a leading '.'.  Two, you have not put an instance here, and you're using a get-type of exact.  Finally, this object returns an integer not a string.  The value for "down" is 1.  This will work at the very least, but it's likely not what you want.  You will want to find the specific neighbor ID and route index:

event manager applet test1 trap

event snmp oid 1.3.6.1.2.1.14.10.1.6 get-type next entry-op eq entry-val 1 poll-interval 2