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?
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: