02-11-2014 03:46 AM
Hello,
I have implement a reachability sla on a 3G router, but think it is too harsh, so I understand is my SLA pinging 10.100.1.66 every 5 seconds and if it can't it will power test the 3G module? If so, how can I get it to ping 10.100.1.66 and shoul it be unreachable for more than a minute then run the actions?
track 234 ip sla 1 reachability
ip sla 1
icmp-echo 10.100.1.66 source-interface Vlan10
frequency 5
ip sla schedule 1 life forever start-time now
event manager applet cell_reset
event track 234 state down
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "service internal"
action 4.0 cli command "end"
action 5.0 cli command "test cellular 0 modem-power-cycle"
action 6.0 cli command "config t"
action 7.0 cli command "no service internal"
action 8.0 cli command "end"event manager applet test
Thanks
02-11-2014 02:41 PM
Add this to your track sub-config:
delay down 60
02-12-2014 02:36 AM
Thanks,
What is the frequency for? Is this the pinging 10.100.1.66 every 5 seconds?
And this 'delay down 60' will delay doing anything with the down state for 60 seconds and in that time should it come back up do nothing?
02-12-2014 08:29 AM
Yes, frequency states the ping will occur every five seconds (probably a bit agressive as the default is every 60 seconds).
Yes, delay down will prevent the tracked object from going down, and thus the EEM applet from executing, for 60 seconds. If the IPSLA operation succeeds before the timer expires, the tracked object will not go down.
02-14-2014 07:36 AM
Hi,
Can I ask where I put that command as I tried under ip sla 1 and it wouldn't allow it?
Thanks
02-14-2014 07:37 AM
I guess I could also use frequency 60?
02-14-2014 07:39 AM
You may not be able to modify a running collector. You may have to stop it, then modify it.
02-14-2014 07:41 AM
Do I have to delete it to do that? I'm not sure how to stop a running script.
02-14-2014 07:44 AM
You can delete and recreate it, or you can just delete the schedule for this collector.
02-14-2014 07:49 AM
Deleted the schedule but:
(config)#ip sla 1
(config-ip-sla-echo)#delay ?
% Unrecognized command
02-14-2014 07:53 AM
Oh, I thought you were talking about the frequency command. THAT belongs under the IPSLA collector. The delay down command belongs under track submode. When you type the track command, you will enter a submode where you can specify up and down delays.
02-14-2014 07:56 AM
Sorry my fault not explaining things properly.
I guess a frequency of 60 may have a similar result as the delay command? I may try that first as it will icmp the remote address every 60 seconds and if it fails it will kick of te track.
Can I get it to ping 5 times before running the track?
02-14-2014 07:58 AM
No. changing frequency to 60 will not have the same effect. You really want to delay down in this case. If you want it to ping five times, set your frequency to 12 and delay down of 60.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: