Did anyone has got a pratical experience around the TCL script using the EEM tools ?
In the detail I have some difficult for an event that have to macth the CRC increment in an ATM interface and after trigger down that interface.
Over the web and Cisco portall too its not so easy to find a clear example.
Any help is appreciated
Your EEM TCL policy registration line to match input CRCs, for example would be something like:
::cisco::eem::event_register_interface name ATM2/0 parameter input_errors_crc entry_op ge entry_val 10 entry_val_is_increment TRUE poll_interval 60
A policy with this event detector will check interface ATM2/0 every 60 seconds to see if the incremental input CRC errors is greater than or equal to 10.
If all you want to do is bring the interface down when the condition occurs, it might be better to use an EEM applet rather than a TCL policy. For example:
event manager applet atm_input_crcs
event interface name ATM2/0 parameter input_errors_crc entry-op ge entry-val 10 entry-type increment poll-interval 60
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "interface ATM2/0"
action 4.0 cli command "shutdown"
action 5.0 cli command "end"
action 6.0 syslog msg "Input CRC errors exceeded 10 during the last 60 seconds; interface ATM2/0 has been shutdown"