Get ping-time in script

How to get avg ping -time in scripts?
or use /tool ping-speed to get the coonection speed.

Or another way to get the real wan speed.
I have 6.5 km wi-fi link. Speed can be changed from 10m to 30m.
and I need to change max-limit in quere tree to real limit.

If you have Mikrotik on both side, you can run bandwidth test for both send and receive direction

I have ubiquiti nbm2 as wi-fi brige and RB450G as router.

UBNT products have bandwidth test too . in main tab, tools, comes a pop up window.

It’s a bad idea to run the test on your routers. This will strain their CPU and this will corrupt the results. You need to run the test like this:

[powerful PC] β†’ [router] – [router] β†’ [powerful PC]

Thanks Normis
You always have different ideas!!! :laughing:

Real speed of my bridge changes during the day.
If speed 20M, and one user download at 20M i have hi ping.(150-200ms)
If i set max limit in query tree at 19M, I have normal ping(20-30).

So, I need to change max limit if ping is hi.

in addition there are users on wi-fi with slow links.
I want to check ping to them and change max limit.