07-15-2016 07:33 AM
07-15-2016 07:54 AM
EEM is correct. You have not registered this policy with the none event detector. The policy as you've written it needs to be triggered by the IP SLA operation timing out. To test, add a black hole route to 157.47.132.208:
ip route 157.47.132.208 255.255.255.255 null0
07-15-2016 02:17 PM
hi joe,
how if I want to try this applet running ? could I using command "event manager run CLEAR_1" ?
07-15-2016 02:30 PM
No. As I said, you'll have to test it by causing the IP SLA operation to fail. Black holing the traffic is the easiest way to do that.
07-15-2016 03:51 PM
if I using cron timer, how I know that applet running ?
event manager applet shutdown_port
event timer cron cron-entry "15 * * * *"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "interface GigabitEthernet0/2"
action 4.0 cli command "shut"
action 5.0 cli command "no shut"
action 6.0 cli command "end"
action 7.0 syslog msg "interface GigabitEthernet0/2 has been shutdown"
!
07-16-2016 12:31 AM
In this case, the policy will execute at 15 minutes past the hour. To test this, you'll need to wait for the specific times or manually set the device's clock to 15 past an hour.
07-16-2016 06:54 AM
Ok joe, i will testing this..and reply again,thanks
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