Community discussions

MikroTik App
 
User avatar
tasia
just joined
Topic Author
Posts: 8
Joined: Mon Dec 18, 2006 1:50 am
Location: Maszewo, Poland
Contact:

Like watchdog script

Mon Jul 07, 2008 2:33 pm

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
    }
}
 
BigCeti
just joined
Posts: 1
Joined: Thu Oct 22, 2009 12:13 am

Re: Like watchdog script

Thu Oct 22, 2009 12:22 am

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
 
User avatar
skillful
Trainer
Trainer
Posts: 552
Joined: Wed Sep 06, 2006 1:42 pm
Location: Abuja, Nigeria
Contact:

Re: Like watchdog script

Thu Oct 22, 2009 1:02 am

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]
    }
}

Who is online

Users browsing this forum: No registered users and 17 guests