cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1392
Views
5
Helpful
2
Replies

Event Manager Applet

corycandia
Level 1
Level 1

Community,

 

Can anyone tell me what I'm doing wrong with event manager and getting an applet to run ever 5 minutes?

 

event manager applet TUNNELBAND
event timer watchdog time 300
event none maxrun 120
action 010 cli command "enable"
action 020 cli command "ping gateway.c3.candiamantics.com source dialer1 repeat 50"
action 040 regexp "Success rate is ([0-9]+) percent" "$_cli_result" match percent
action 045 puts "$match"
action 050 cli command "conf t"
action 060 cli command "router eigrp 1"
action 070 if $percent ge "98"
action 075 cli command "no offset-list 0 out 1000 Tunnel0"
action 076 cli command "no offset-list 0 in 1000 Tunnel0"
action 080 cli command "offset-list 0 out 1000 Tunnel50"
action 082 cli command "offset-list 0 in 1000 Tunnel50"
action 090 else
action 095 cli command "no offset-list 0 out 1000 Tunnel50"
action 096 cli command "no offset-list 0 in 1000 Tunnel50"
action 100 cli command "offset-list 0 out 1000 Tunnel0"
action 105 cli command "offset-list 0 in 1000 Tunnel0"
action 110 end
!

 

I start it with 'event manager run TUNNELBAND' and then check the hostory 'show event manager history events', but I only see it run one time and then stop.  I must be doing something wrong, but the watchdog  timer line matches the config guide, so I'm lost.

 

Thanks.

1 Accepted Solution

Accepted Solutions

Dan Frey
Cisco Employee
Cisco Employee

you have two event detectors (watchdog and none) without defining them in an event trigger.  To fix it:

remove line 

event none maxrun 120 

 update line

event timer watchdog time 300 maxrun 120

 

  The script will NOT run manually with "event manager run TUNNELBAND" and the script will run every 5 minutes.

 

View solution in original post

2 Replies 2

Dan Frey
Cisco Employee
Cisco Employee

you have two event detectors (watchdog and none) without defining them in an event trigger.  To fix it:

remove line 

event none maxrun 120 

 update line

event timer watchdog time 300 maxrun 120

 

  The script will NOT run manually with "event manager run TUNNELBAND" and the script will run every 5 minutes.

 

Thank you sir

Review Cisco Networking products for a $25 gift card