04-16-2015 11:45 AM
Trying to run this on an ASR 1001-x with 3.13 code. It seemed to behave properly in the lab, but not on customer's router:
event manager applet WebEx_DOWN
event routing network 62.109.194.64/26 type remove
action 1.0 syslog msg "WebEx Route Lost - Disabling CUBE Service"
action 2.0 cli command "enable"
action 3.0 cli command "config t"
action 4.0 cli command "voice service voip"
action 5.0 cli command "sip"
action 6.0 cli command "call service stop"
action 7.0 cli command "end"
event manager applet WebEx_UP
event routing network 62.109.194.64/26 type add
action 1.0 syslog msg "WebEx Route Added - Enabling CUBE Service"
action 2.0 cli command "enable"
action 3.0 cli command "config t"
action 4.0 cli command "voice service voip"
action 5.0 cli command "sip"
action 6.0 cli command "no call service stop"
action 7.0 cli command "end"
When the route disappeared, there was a line in the syslog "WebEx Route Lost - Disabling CUBE Service", but the service was not stopped. I had to stop it myself. I then let it sit. Once the route reappeared, the message "WebEx Route Added - Enabling CUBE Service" showed up, but SIP did not start. Any ideas?
Solved! Go to Solution.
04-19-2015 12:22 PM
If you have AAA command authz enabled, then make sure you've configured "event manager session cli username USER", where USER is a name authorized to run all of the CLI commands in your applets.
If you still don't see the behavior you want, enable "debug event manager action cli" to see what the results of the CLI commands are.
04-19-2015 12:22 PM
If you have AAA command authz enabled, then make sure you've configured "event manager session cli username USER", where USER is a name authorized to run all of the CLI commands in your applets.
If you still don't see the behavior you want, enable "debug event manager action cli" to see what the results of the CLI commands are.
04-28-2015 08:09 AM
Thanks Joe, I found another way to do it - authorization bypass, but I like your solution better. Much appreciated!
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