SNMP/Port speed

Hello everybody!

This is my first post and I’m new to this board. I’m reading in this board all the time but I didn’t find an answer to my question. I’m writing a tool in PHP to gather some information about my Mikrotik via SNMP. I’m able to read things like systemname, cpu-load, total size of RAM, occupied RAM, total size of HD, occupied size of HD, wether the ports are up/down …, uptime and many things else. But I’m not able to find out what’s the actual speed on e. g. eth0 - when I read “bytes-in”, I’m getting the total size of bytes gone in through this interface… Does anybody know how do I get the actual speed on this interface? And yeah, I know that it would be possible to use another tool like MRTG or something like this - but I don’t need such a “big” tool.

Thanks for your help in advance.

greets Dominik

Datarate is typically calculated by SNMP programs by measuring the change in bytes over change in time. You can graph all the things that change with MRTG if you want. (data rates, HD space, memory free, etc…) It’s fairly easy. I have a database that gets filled in with SNMP things, then I have a seperate program that goes through the database and builds an mrtg.conf file to graph what I want. So I basically keep track of things and graph things without any work except for adding MTs to the database as they are added to our system.

Thx jp for your answer!
When I’m thinking about the way to solve it, it’s just logical how you describe it :wink:.

I know that MRTG does its job very well but I wanted to do it on my own - we’ll see if I’ve enough time to develop that.

Greets