Hello,
I start in the mikrotik. I'm trying to know if the maximum ping is higher than 20ms but it does not work.
Here is my piece of code
if([/ping 8.8.8.8 max-rtt>20]) do={:beep frequency=550 length=494ms;}
Thanks you for your assistance.
[mikronsultik@AP TestUfficio] > :if ([/ping 196.25.1.1 interval=2 count=3]=3) do={:put "DESTINATION IS ALIVE"}
SEQ HOST SIZE TTL TIME STATUS
0 196.25.1.1 56 246 219ms
1 196.25.1.1 56 246 218ms
2 196.25.1.1 56 246 218ms
sent=3 received=3 packet-loss=0% min-rtt=218ms avg-rtt=218ms max-rtt=219ms
DESTINATION IS ALIVE
[mikronsultik@AP TestUfficio] > /tool flood-ping 8.8.8.8 count=10 do={ :set $maxRtt $"max-rtt" }
sent: 10
received: 10
min-rtt: 75
avg-rtt: 79
max-rtt: 112
[mikronsultik@AP TestUfficio] > :put $maxRtt
112