Community discussions

MikroTik App
 
obadaabdullah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Wed Jan 08, 2014 7:41 pm

ip ping by scripts

Thu Mar 27, 2014 5:45 pm

hi all
i have 4 access points
xxx.xxx.10.254 main one attached to eth2
connecting (wds) with
xxx.xxx.10.253
xxx.xxx.10.252
xxx.xxx.10.251
and the
i want to ping the AP's every (50 min for example) to make sure they are all works and if there is no ping i want my RB to beep
is that possible?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ip ping by scripts

Thu Mar 27, 2014 6:02 pm

Yes. Replace xx.xx.xx.xx with the ip you want to test ping.
:if( [/ping "xx.xx.xx.xx" count = 1] == 0) do={
  :beep;
}
 
obadaabdullah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Wed Jan 08, 2014 7:41 pm

Re: ip ping by scripts

Sat Mar 29, 2014 9:57 am

Yes. Replace xx.xx.xx.xx with the ip you want to test ping.
:if( [/ping "xx.xx.xx.xx" count = 1] == 0) do={
  :beep;
}
sorry it doesn't work
i need to ping through out1 interface using arp
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ip ping by scripts

Sat Mar 29, 2014 1:23 pm

Get ping working first.
/ping xx.xx.xx.xx arp-ping=yes interface=out1 count=1
If that works, add it to the script above.

Who is online

Users browsing this forum: Baidu [Spider], mozerd, saturn3, Stril, water35, zandhaas and 102 guests