RE: SNMP only getting data every 15 seconds.
"Ron Rader" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <C88FF64CFD06EE4B91C5B89CD48379FE183B9C@dellserver.cipheroptics.com> |
> From: Steve (Telsat Pacific) [mailto:[email protected]] > 1.3.6.1.2.1.2.2.1.10.1 > 1.3.6.1.2.1.2.2.1.16.1 OK, ifInOctets and ifOutOctets, thanks. > Below is the output from snmpwalk. I ran the command about once per > second and each time it gave me the same result (it almost looks as if it > was cached or something) and then around the 15 second mark, it then > returned a new value. This completly puzzles me. I just tried a similar test on my own project and got bursty results very similar to yours. This is on a custom built system running an embedded Linux variant which is unlikely to use the same drivers as a prebuilt Fedora system. I took a look at RFC 2863 and it describes ifInOctets thusly: "The total number of octets received on the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime." All of the ifTable counters have similar descriptions. ifCounterDiscontinuityTime description: "The value of sysUpTime on the most recent occasion at which any one or more of this interface's counters suffered a discontinuity. The relevant counters are the specific instances associated with this interface of any Counter32 or Counter64 object contained in the ifTable or ifXTable. If no such discontinuities have occurred since the last re- initialization of the local management subsystem, then this object contains a zero value." I retrieved these discontinuities from my system with this command: snmpwalk -v 2c -c public aaa.bbb.ccc.ddd iso | grep DiscontinuityTime and found that each of them was zero, theoretically meaning no discontinuities. I'm afraid all I can say is "that's the way it works." I can't speculate about reasons why other systems might act differently. Perhaps someone more familiar with the net-snmp IF-MIB population code can comment? There doesn't appear to be any way to change this from the command line or configuration files that I know of. Ron The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ 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