cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1925
Views
0
Helpful
5
Replies

EEM Script to send SNMP Trap if Input errors

daniel-nilsson
Level 1
Level 1

Hi
It's important for us to se if a trunk interface on ASR920 has Input Errors

How can we accomplish this with EEM script so that EEM detects Input Errors and send a SNMP Trapp to the SNMP Surveillance system?

For example int Te0/0/24-27

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

Take a look at this thread: https://supportforums.cisco.com/discussion/13284001/shut-down-interface-based-crc-errors .  While that user wanted to shutdown an interface based on errors, you could simply call the snmp-trap action to send a trap.

I was this, but then this needs to be repeated 4 times if I have 4 interfaces.

Correct, you'd need to duplicate the applet for the four interfaces.

Is there a way to match interface description and do a action?

Not using this event detector.  You would need to create a timer policy that looks at the output of "show int" for your interfaces, parse the description, and then generate the trap if the error counts are high enough.  The problem with this is that you will have to create regular expressions to parse "show int" output as well as track the delta of interface errors yourself.

Review Cisco Networking for a $25 gift card