hello..
help me please, i want log ping time result, i use script :put :log and not works, anybody knows another way?
hello..
help me please, i want log ping time result, i use script :put :log and not works, anybody knows another way?
i still can’t solved… ![]()
me too.i think this is vrey hard!
in linux its very easy, but how in ROS?
help me master,brother,sister…
Hi,
solution is here: http://wiki.mikrotik.com/wiki/MikroTik_RouterOS/Feature_Requests
Edit and pray that more people will request this feat.
thank you petrn, its all nice idea, i think ROS will become greater than another router os.
i love MT ROS. ![]()
Does this work for you?
:local avgRtt;
:local pin
:local pout
/tool flood-ping 192.168.1.1 count=10 do={
:if ($sent = 10) do={
:set avgRtt $"avg-rtt"
:set pout $sent
:set pin $received
}
}
:local ploss (100 - (($pin * 100) / $pout))
:local logmsg ("Ping Average for 192.168.1.1 - ".[:tostr $avgRtt]."ms - packet loss: ".[:tostr $ploss]."%")
:log info $logmsg
The IP address is just an example, a variable could be used to set the address.
hello bburley,
i’ve tried flood ping tool, but i think flood ping and ping utility are different thing and the result of test of them also different, may be i don’t understand how to use it. ![]()
When you used flood-ping did you limit the number of pings with the “count=” parameter?
yes i did, and it run with schedule every 1 second.
is there any way how to log ping result?
The script that I posted logs the average response time for 10 pings as well as the packet loss if any. You can modify the number of pings or exactly what is logged by modifying the script. Then run the script with the scheduler.