English 中文(简体)
Definition of SNMP Gauge32 vs Counter32
原标题:
  • 时间:2010-04-27 02:03:48
  •  标签:
  • snmp
  • mib

Can someone point me to a good definition of Gauge32 vs Counter32? I understand that Counter32 can wrap, but Gauge32 can t.

I m trying to understand their semantics. For example, I ve heard you should take the difference between two Counter32 readings to get a value/second. Is there something like that for a Gauge32 value?

Thanks for any insight.

最佳回答

The best definition of these (i.e. the definition) is in the sections of the RFC that defines them: RFC 2578.

As the RFC says, a Counter32 has no defined initial value, so a single reading of Counter32 has no information content. This is why you have to take two (or more) readings to make sense of it. An example of this would be the number of packets received on an ethernet interface. If you take a reading and get back 4 million packets, you haven t learned anything: the wire could have been pulled out of the interface for the past year, or it could be passing millions of packets per second. You have to take multiple readings to know anything.

A Gauge32 on the other hand, measures some quantity at a moment in time and may go up or down. You can t necessarily make meaningful observations about two (or more) readings over time. An example of this is free disk space. You can fetch the value now, and an hour from now, and find that the change is zero -- but you can t draw the conclusion that nothing has been written to disk over the course of the hour. It s possible that the disk is getting hammered with constant additions and deletions that do not result in a net change in free space.

问题回答

They both can represent a value up to 2^32.

The difference lies that once a they reach 2^32 a counter starts again from 0 and represents the value (N+2^32)+X as X whereas a gauge doesn t wrap.

Counters are also called rollover counters. They are typically used to count the number of packets or octets sent or received. After a rollover counter has wrapped around several times ,it is difficult for management system to know whether the counter value value of X means that the quantity observed is X or (N+2^32)+X where N is no of rollovers.So the system needs to periodically poll the object to keep tracks of wraparounds.

Gauge on the other hand are used to measure the current value of some entity such as current number of packets stored in a queue.A gauge can be used to store the difference in value of some entity from the start to the end of a time interval. This enables gauge to used to monitor the rate of change of value of entity.





相关问题
How do I use SNMP to monitor job status on a printer?

I ve been trying to figure out how to monitor job status via SNMP and I have found a solution on Xerox based printers (using Xerox implemented mibs), but I m looking for something that will work ...

SnmpExtensionTrap has a size limit?

I am working on a problem in SNMP extension agent in windows, which is passing traps to snmp.exe via SnmpExtensionTrap callback. We added a couple of fields to the agent recently, and I am starting ...

SNMP on AIX 5.3

I need to monitor a system with AIX 5.3, but can t find a good source for the OIDs. Does anybody know the OIDs for CPU, Memory and Harddisk values?

opensource network monitoring tools developed in java

i want to know the best opensource network monitoring tool developed in java with very good support via forums and which should have the following features .. Fault and Alert mgmt Performance Poll ...

snmp and platform specific information

I need to come with a strategy to use gather information about the health of my linux platform, hardware health such as high CPU temperature and may be disk space usage, etc... I know my examples are ...

SNMP in Java, specifically to be JMX adapter

I have a few JAVA application that I monitor using JMX. I would like to write an SNMP client for these applications that wraps the JMX interface and by discovery exposes the same attributes that are ...

热门标签