Re: Please help - bandwidth usage

"Dan Mahoney, System Admin" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Thu, 20 Apr 2006, Shaun Mitchell wrote:

> Hello SNMP Gurus,

This may be stupid, but have you tried mrtg?

www.mrtg.org

-Dan

> I'm trying to track the bandwidth utilization on a Cisco switch using the
> ifInOctets and ifOutOctets. What I'm doing is polling the port every 5
> minutes and storing the octets and then using the last poll counter and the
> current poll counter to figure out the amount of bits per second that has
> been through the port. I've tried using a Cisco formula that goes something
> like this:
>
>
>
> -          Get the delta of the ifInOctets (take the two poll results and
> subtract them to get the difference)
>
> -          Then times that delta by 8 then by 100
>
> -          Take that result and divide it by the time between then two polls
> (300 seconds) times the ifSpeed (100000000).
>
>
>
> This should give the bits per second. Now it's not 100% accurate but should
> be close enough for me. The problem is that I'm not getting anything close
> to what I'm expecting. My sample data is returning about 5 bps and a
> monitoring program is telling me it's more like 1572864 bps. Any ideas on if
> that equation above is wrong?
>
>

--

unless is a pr0no book he wont even come close to the bandwidth quota

-Racer-X, concerning DanMahoney.com's web hits.


--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.