11-26-2009 07:09 AM - edited 03-06-2019 08:44 AM
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?
Solved! Go to Solution.
11-28-2009 10:13 PM
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:
11-28-2009 10:13 PM
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:
11-30-2009 01:57 AM
Great! That's work right.
Thanks a lot!
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