It might rollover more than once within the timeframe that you poll. I've seen that occurr on busy links.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Mitchell Sent: Friday, April 21, 2006 8:53 AM To: 'PAUL WILLIAMSON' Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Please help - bandwidth usage Thanks Paul, I have looked at RRDTool and almost all other third party tools. I've used most of them in testing to find out what I'm doing wrong. It boils down to I need a custom solution so I'm developing what I can. As for the rollover for the 32 bit counters; I'm already taking that into consideration in my code. Once I detect the rollover I run another equation to figure out the difference in the counters but again once I have those numbers the equation just doesn't give the numbers I'm expecting. Shaun Mitchell -----Original Message----- From: PAUL WILLIAMSON [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 9:21 AM To: [EMAIL PROTECTED] Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Please help - bandwidth usage Not to Monday morning quarterback this whole thing, but have you tried RRDTool with one of the collector/frontends? I haven't found anything I want to do that hasn't already been done. As for your problem, are you sure there isn't a counter rollover happening? Or, are you using 32 bit counters and have you tried using the 64 bit counters (if available/necessary)? As for your equation, from the pseudo code provided it looks like you have it correct. Paul >>> "Shaun Mitchell" <[EMAIL PROTECTED]> 04/20/06 9:24 PM >>> Yes, we currently use mrtg in house but my boss has wanted an in house portal developed and didn't like the look and lack of options that mrtg presented, so I'm developing it to fit into our portal. Shaun Mitchell -----Original Message----- From: Dan Mahoney, System Admin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 9:29 PM To: Shaun Mitchell Cc: 'net-snmp-users@lists.sourceforge.net' Subject: Re: Please help - bandwidth usage 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------- 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&kid0709&bid&3057&dat1642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users