In IP SLA you can set the reaction-configuration thresholds. Try that.
Jey S. Network Engineer CCIE #41608 Sent from my iPhone > On 5 Mar 2014, at 08:32, M K <[email protected]> wrote: > > Hi , thanks and sorry for the late replyI am facing some issues with the > script , when the IP SLA is down , the router did not wait for the 5 minutes > , it reloaded directly > >> From: [email protected] >> To: [email protected]; [email protected] >> Subject: Re: [c-nsp] Event Manager Script >> Date: Sun, 2 Mar 2014 12:33:34 +0000 >> >> >> >>> Hi allI am trying to do a event manager script that will do the below and >>> need some assistanceI want to ping to a specific destination and if the >>> ping request timed out for a period of for example 5 minutes , the router >>> should be reloaded >> >> not sure whether this is a good idea or not (the router could reload >> forever), here is a way to achieve the goal: >> >> ip sla 1 >> icmp-echo <destination-addr> >> frequency 20 >> ip sla schedule 1 life forever start-time now >> ! >> >> track 1 ip sla 1 reachability >> delay down 300 >> ! >> event manager applet reload-if-down >> event track 1 state down >> action 1.0 syslog msg "Reloading the router due to unreachability" >> action 2.0 reload >> >> hope this helps.. >> >> oli > > _______________________________________________ > cisco-nsp mailing list [email protected] > https://puck.nether.net/mailman/listinfo/cisco-nsp > archive at http://puck.nether.net/pipermail/cisco-nsp/ _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
