Community discussions

MikroTik App
 
User avatar
metron6
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Sat Nov 16, 2013 3:41 pm

script about the connection speed of the interface

Tue Nov 02, 2021 11:38 pm

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 ?
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: script about the connection speed of the interface

Wed Nov 03, 2021 12:03 pm

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?
 
User avatar
metron6
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Sat Nov 16, 2013 3:41 pm

Re: script about the connection speed of the interface

Wed Nov 03, 2021 5:38 pm

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.
 
k4c
just joined
Posts: 5
Joined: Thu Mar 24, 2022 2:48 pm

Re: script about the connection speed of the interface

Wed Mar 30, 2022 4:00 pm

+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.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: script about the connection speed of the interface

Thu Mar 31, 2022 9:04 am

Can it be a bug? What RouterOS version do you run?
 
holvoetn
Forum Guru
Forum Guru
Posts: 5405
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: script about the connection speed of the interface

Thu Mar 31, 2022 9:25 am

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 :lol: ).
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 ?

Who is online

Users browsing this forum: Luanscps and 19 guests