Community discussions

MikroTik App
 
User avatar
gard
newbie
Topic Author
Posts: 34
Joined: Wed Mar 14, 2018 12:51 pm

How get Speed graphic for interface in The Dude?

Thu Jun 03, 2021 8:21 am

Hello all!
Sorry for my bad english. I have question.
How i may get speed graphic in The Dude for wireless interface.

I create Data Source, tired this:
- see bytes-out oid for interface (bytes-out=.1.3.6.1.2.1.31.1.1.1.10.7), this oid("1.3.6.1.2.1.31.1.1.1.10.7")
- then i do diff32 function - diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")) to get the difference (bytes) from the previous call.
- then i use rate function for this - rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1) - it this is the number of bytes per second
- so i need bit in second - rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8 , this number bit/s
Is everything correct so far?
Then i convert the bits to megabits rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8/1000000
And... round this number:
round(rate(diff32(oid("1.3.6.1.2.1.31.1.1.1.10.7")),1))*8/1000000)

But I get some completely strange data on the graph, the refresh time of the graph is 1 second. Units of measurement on the "M" graph, I also don't understand how to change it.
How correct get current speed for same interface in Mbit/s in The Dude?
I would be grateful for your help.
 
Helmihenna
just joined
Posts: 1
Joined: Wed Jun 02, 2021 10:08 pm

Re: How get Speed graphic for interface in The Dude?

Thu Jun 03, 2021 10:41 am

Few questions:

Is this for TCP/IP usage?

At what level do you need bandwidth monitoring? For every Opto22 device or for the local network out to another network?


Check if your network switch has SNMP capabilities. You can then get/downlad an SNMP monitoring tool to look at the per port bandwidth from the switch. You will need to figure out from the switches documentation for what SNMP OID you are looking for. Each Opto22 device and computer will need to be the only device on that port of the switch to get per device statistics.

Opto22 devices also have built-in SNMP, but I don’t know if they give any information on bandwidth - never looked.
 
User avatar
gard
newbie
Topic Author
Posts: 34
Joined: Wed Mar 14, 2018 12:51 pm

Re: How get Speed graphic for interface in The Dude?

Wed Jun 09, 2021 9:34 am

Hello!
Sorry for late answer.

Yes, my devices support SNMP. OID 1.3.6.1.2.1.31.1.1.1.10.7 is TX bytes for same interface.
I need get graphic for outgoing traffic for this interface.
Bytes i tired convert to bit/s.

But i have not correct data in graphical view.

Who is online

Users browsing this forum: No registered users and 15 guests