Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Problem with EVENT

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Problem with EVENT

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

2 REPLIES
Cisco Employee

Re: Problem with EVENT

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

New Member

Re: Problem with EVENT

Great! That's work right.

Thanks a lot!

553
Views
0
Helpful
2
Replies