Using SNMP and InOctets counter to keep track of download usage

与世无争的帅哥 提交于 2019-12-06 12:31:28
Russell

Just remember that SNMP InOctets is the total number of octets sent and received on an interface, including framing characters. Keep in mind that InOctet SNMP values cycle and restart at 0 when they get to the max value available for a 16-or-32-bit value, so you have to be polling the value at regular intervals and calculating the total number of octets by the difference in octets from the last poll.

You would multiply the total InOctets value collected over a timeframe by 8 to get the number of bits. There are 8,589,934,592 bits in a GigaByte.

(InOctets * 8) / 8,589,934,592 = Total GB transfer inbound

Also, I would recommend using something like MRTG, Cacti, RTG, or several other free tools that can do this for you.

Hope this helps.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!