Community discussions

MikroTik App
 
tberg
newbie
Topic Author
Posts: 41
Joined: Sun Sep 22, 2013 6:34 pm

Interface bit rate graphing

Fri Apr 14, 2017 8:15 pm

Anyone know how the Interface.OutBitRate and InBitRate are calculated? In the case of out, is it difference in out octets between consecutive polls / poll interval / 8 bits/octet? So if poll interval is 1 min., it would be avg over the minute?

Thanks,
Todd
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Interface bit rate graphing

Mon Apr 17, 2017 10:54 pm

Search for posts with rate, diff32 and diff64. Rate returns parameter divided by time elapsed since previous call. So if you grab the diff of a counter you can use rate to give the change over time.

rate(diff32(oid("1.3.6.1.2.1.2.2.1.14.12")))
 
tberg
newbie
Topic Author
Posts: 41
Joined: Sun Sep 22, 2013 6:34 pm

Re: Interface bit rate graphing

Thu Apr 20, 2017 12:30 am

Thanks!!
I set up a graph of rate(diff32(oid("1.3.6.1.2.1.2.2.1.10.1")))*8 and compared to the standard link graph that gets created when you check 'Graph bit rate' on the History tab of the link. Both graphs looked the same.
Todd
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Interface bit rate graphing

Mon Apr 24, 2017 8:58 pm

Cool glad you got it working.

Who is online

Users browsing this forum: No registered users and 13 guests