10-01-2012 10:46 AM
We have 4510's with dual 10 gig links back to 6509's. When one of our interfaces starts to accumulate crc errors it impacts the latency and availability of our end users behind the 4510. Either the interface err-disables or we manually shut it down and the other 10 gig link is unblocked by spanning-tree and traffic begins to flow as usual. Is there a way to use EEM to detect these input or crc errors and shut down the interface?
I'm looking at the below as a resolution:
event manager applet Te5/1 trap authorization bypass
"event interface name TenGigabitEthernet5/1 parameter input_errors_crc entry-op le entry-val 0 entry-type value exit-comb or exit-op gt exit-val 0 exit-type value exit-time 5000 exit-event true poll-interval 100 maxrun 10000"
action 1 cli command "configure terminal"
action 2 cli command "interface te5/1"
action 3 cli command "shutdown"
Solved! Go to Solution.
10-03-2012 09:23 AM
An EEM applet will work for you, but the way you have this one designed might not do what you want. Try this:
event manager applet monitor_te51 authorization bypass
event interface name TenGigabitEthernet5/1 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 ten5/1"
action 4.0 cli command "shut"
10-03-2012 10:51 AM
You can change this to use 1 instead of 0:
event interface name TenGigabitEthernet5/1 parameter input_errors_crc entry-op ge entry-val 1 entry-type increment exit-val 1 exit-op lt exit-type increment poll-interval 10
10-03-2012 09:23 AM
An EEM applet will work for you, but the way you have this one designed might not do what you want. Try this:
event manager applet monitor_te51 authorization bypass
event interface name TenGigabitEthernet5/1 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 ten5/1"
action 4.0 cli command "shut"
10-03-2012 09:54 AM
The "event" command is incomplete in the example you wanted me to try.
event interface name TenGigabitEthernet5/1 parameter input_errors_crc entry-op gt entry-val 0 entry-type increment exit-comb or exit-op eq exit-val 0 exit-type increment exit-time 5000 exit-event true poll-interval 100000
The above commands are the required options for the "event" statement.
10-03-2012 10:24 AM
Whoops, forgot the poll-interval. The exit combination stuff is not needed unless you want the exit condition to include a time limit. This should be fine:
event interface name TenGigabitEthernet5/1 parameter input_errors_crc entry-op gt entry-val 0 entry-type increment exit-val 0 exit-op eq exit-type increment poll-interval 10
This will poll for error changes every 10 seconds.
10-03-2012 10:46 AM
Thanks Joseph,
This command worked on the 4510 but not on the 6509. It won't let me set the entry-val to "0". "1-4294967295" is the available option. Will setting a 1 here accomplish the same result? If no crc's are detected this value would be "0" and I don't want this to be triggered if the value is 0 not 1. Any help? Or if you can point me to the EEM config guide I will look there.
10-03-2012 10:51 AM
You can change this to use 1 instead of 0:
event interface name TenGigabitEthernet5/1 parameter input_errors_crc entry-op ge entry-val 1 entry-type increment exit-val 1 exit-op lt exit-type increment poll-interval 10
10-03-2012 11:07 AM
Works perfectly!
show event manager history events detailed
No. Job Id Status Time of Event Event Type Name
1 1 success Wed Oct 3 13:54:21 2012 interface applet: monitor_te23
name TenGigabitEthernet2/3 parameter input_errors_crc is_increment TRUE value 4 delta_val 4 exit_event 0
2 2 success Wed Oct 3 13:57:31 2012 interface applet: monitor_te23
name TenGigabitEthernet2/3 parameter input_errors_crc is_increment TRUE value 41 delta_val 37 exit_event 0
02-23-2019 01:07 AM
02-23-2019 12:51 AM - edited 02-23-2019 12:53 AM
i have same problem ,,, This command worked on the 4510 but not on the 6509. It won't let me set the entry-val to "0". "1-4294967295" is the available option. Will setting a 1 here accomplish the same result? If no crc's are detected this value would be "0" and I don't want this to be triggered if the value is 0 not 1. Any help? Or if you can point me to the EEM config guide I will look there
02-23-2019 01:03 AM
event interface name Vlan142 parameter out_packets_dropped entry-op ge entry-val 10200000000 entry-type value poll-interval 4
10200000000 (10G) NOT Enable ? Can Help me
02-23-2019 04:50 PM
I'm not sure why'd you'd want to do this. Packets dropped is a counter. Do you really want to signal an event every time this counter gets to an exceeds 10200000000? I don't think so. It would be better to react to a threshold of increase (like 10 within your four second period). In that case use entry-type increment and specify a low number that would would consider your rising threshold within your polling interval.
08-29-2016 09:13 PM
I know this is an old thread but I'm looking to do something similar to this on a Nexus 5696 running 7.1.3.N1.2 code. I want to monitor a port channel interface connecting to a FEX for 10,000 CRC then when I see this I want to shut down the Fex interfaces for example eth116/1/1-48 to fail the servers over to the secondary NIC connected to another Fex on another leaf.
I got something like this maybe so far but I'm not seeing how to monitor a specific interface for this in Nexus
event manager applet monitor_crc
event counter name input_errors_crc entry-val 0 entry-op ge exit-val 10000 exit-op eq
I want the event to only be based on a particular set of ports and then to shut those fex interfaces connected off those ports. Can I do that in Nexus? Or is there a better way than EEM?
02-23-2019 06:48 AM - edited 02-23-2019 11:10 AM
parameter input_errors_crc entry-op gt entry-val 0 entry- type increment exit-comb or exit-op eq exit-val 0 exit-type increment exit-time 5000 exit-event true poll-interval 100000 https://xender.pro/ https://discord.software/ https://omegle.onl/
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide