cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
788
Views
0
Helpful
2
Replies

Problem with EVENT

kudachkin
Level 1
Level 1

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

Joe Clarke
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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

Great! That's work right.

Thanks a lot!

Review Cisco Networking products for a $25 gift card