Like watchdog script
Posted: Mon Jul 07, 2008 2:33 pm
by tasia
Please check may script to disable and enable interface after ping failed:
{
:if ([/ping XX.XX.XX.XX count=2]>0) do={
/interface disable 2
:delay 2s
/interface enable 2
}
}
Re: Like watchdog script
Posted: Thu Oct 22, 2009 12:22 am
by BigCeti
Please check may script to disable and enable interface after ping failed:
{
:if ([/ping XX.XX.XX.XX count=2]>0) do={
/interface disable 2
:delay 2s
/interface enable 2
}
}
this scrip not working in my router v3.30 on x86 and can i make this scrip to disable just one interface example /interface disable wlan1 :delay 2s /interface enable wlan1
Re: Like watchdog script
Posted: Thu Oct 22, 2009 1:02 am
by skillful
Something like this.
{
:if ([/ping XX.XX.XX.XX count=2]>0) do={
/interface disable [find name=wlan1]
:delay 2s
/interface enable [find name=wlan1]
}
}