script about the connection speed of the interface

hello all,

i have a mikrotik router connected to a linux box.
from time to time, ethernet speed falls back to 100mbit
if i disable/enable the interface, it goes back to 1000mbit.

so i need a script to check the connection speed, and if its 100mbit, disable/enable the interface and send me an e-mail.

can someone help ?

If linux is directly connected to your Mikrotik router, you should find out what the problem is, not try a workaround.
This should work without any problem.
Hardware problem on your linux box?
Long cables? Bad cables?

hello,
i do not have access to the linux box.
i just noticed that if i disable/enable the interface, re-connects to 1000mbit.

+1 for such a script. I have the same problem on cat6 cables. Short or long, no rule. Mikrotik switch and mikrotik RB3011 does not matter. Re enabling port fixes problem for some time, so automatic script is required to workaround this flaw.

Can it be a bug? What RouterOS version do you run?

I have a Hex router at home (already since last year on ROS7, currently 7.2rc5) and one of the devices connected to it, is a Linux VM farm running on an old laptop (i7 processor and 24Gb or RAM, why waste that HW :laughing: ).
On that farm there is 1 VM running Grafana which does (using python script) an external speedtest to check my ISP connection every hour.
I have that thing running since some months now, NEVER have I seen speed drop to 100mbs. It’s always a bit lower then what my ISP advertises for my connection (190-ish, sometimes a drop to 130/140 Mpbs but never below 100Mbps).

So I am also curious to know what version you’re running on it.
Do you see this also for connections towards other devices or only towards that linux box ?