Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

EEM on NX-OS - Disable Interfaces with High Errors

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
Cisco Employee

This isn't as easily doable

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

151
Views
5
Helpful
1
Replies
CreatePlease login to create content