cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1280
Views
5
Helpful
1
Replies

EEM on NX-OS - Disable Interfaces with High Errors

mattatqcomm
Level 1
Level 1

Is there a way to monitor individual interface counter errors using EEM, then trigger an action such as shutting the interface?

 

The below is an example IOS EEM configuration.  I'm trying to do the same thing, or accomplish the same end result.

 

event manager applet monitor_eX/Y

event interface name EthernetX/Y parameter input_errors_crc entry-op gt entry-val 0 entry-type increment exit-val 0 exit-op eq exit-type increment

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "int eX/Y"

action 4.0 cli command "shut"

 

Regards,

 

Matt

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

This isn't as easily doable in NX-OS.  You can switch to using the SNMP event detector, but then you need to know the ifIndex of the interface in question.  Then you can monitor ifInErrors (1.3.6.1.2.1.2.2.1.14.IFINDEX) to see if it crosses your threshold.  Something like:

 

event snmp oid
1.3.6.1.2.1.2.2.1.14.IFINDEX get-type exact
entry-op gt 0 entry-val 0 polling-interval 300