Hi,
Trying to create a script to detect CRC (FCS) errors with a defined rate in a defined period and shut interfaces in an Etherchannel pair. Wondering how to either automatically clear counters after detected and interface is manually brought back up, or increment from point of existing error count and then take action after defined rate. Trying to run this on a Nexus 7K running 6.2(10). The "entry-type increment" command is what I think I need, but it is not an option for me in the syntax. I see it all over in sample scripts. Is "entry-type increment" not available on 7K's or NXoS? If not available, does anyone have a workaround?
event manager applet Detect_CRC_Shut_Interface_in_EtherChannel_Pair
event snmp oid 1.3.6.1.2.1.2.2.1.14.436207616 get-type exact entry-type increment entry-op gt entry-val 1 exit-type increment exit-op lt exit-val 1 poll-interval 10
action 1.0 cli command "config t"
action 2.0 cli command "int e1/1"
action 3.0 cli command “shut"
Also, with the above event detection and action, I will need an applet for each interface I want to monitor. Any ideas on simplifying this?
Thanks,
Joe