Problem with EVENT

Answered Question
Nov 26th, 2009

Hi everybody.

Early - i use

event manager applet APPLET1
event track 1 state any
action ACTION1 cli command "enable"
action ACTION4 cli command "clear ip nat translation *"

To clear nat translation when one link to ISP fall and i reconnect to another

But now  in 12.4(19b) - ADVSECURITY - i can use *event track 1 state any* - becose IOS doesn't know this.

What can i do? Maybe somebody knew?

I have this problem too.
0 votes
Correct Answer by Joe Clarke about 7 years 2 days ago

Enhanced Object Tracking support was not added to EEM until 12.4(2)T.  In the meantime, you can use the syslog ED to do what you want.  For example:

event manager applet track-down

event syslog pattern "TRACKING-5-STATE: 1.*Up->Down"

action 1.0 cli command "enable"

action 2.0 cli command "clear ip nat translation *"

If the syslog message is not available, then you can use SNMP and the CISCO-RTTMON-MIB.  Here is an example:

https://supportforums.cisco.com/docs/DOC-8069

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Sat, 11/28/2009 - 22:13

Enhanced Object Tracking support was not added to EEM until 12.4(2)T.  In the meantime, you can use the syslog ED to do what you want.  For example:

event manager applet track-down

event syslog pattern "TRACKING-5-STATE: 1.*Up->Down"

action 1.0 cli command "enable"

action 2.0 cli command "clear ip nat translation *"

If the syslog message is not available, then you can use SNMP and the CISCO-RTTMON-MIB.  Here is an example:

https://supportforums.cisco.com/docs/DOC-8069

Actions

This Discussion