Hi Dave,
Thanks for the reply. I agree with what you are saying but there is a slight difference in Gauge32 and Unsigned32, which was misleading at least to me.
RFC 1155
3.2.3.3. Counter
This application-wide type represents a non-negative integer which
monotonically increases until it reaches a maximum value, when it
wraps around and starts increasing again from zero. This memo
specifies a maximum value of 2^32-1 (4294967295 decimal) for
counters.
This application-wide type represents a non-negative integer which
monotonically increases until it reaches a maximum value, when it
wraps around and starts increasing again from zero. This memo
specifies a maximum value of 2^32-1 (4294967295 decimal) for
counters.
3.2.3.4. Gauge
This application-wide type represents a non-negative integer, which
may increase or decrease, but which latches at a maximum value. This
memo specifies a maximum value of 2^32-1 (4294967295 decimal) for
gauges
This application-wide type represents a non-negative integer, which
may increase or decrease, but which latches at a maximum value. This
memo specifies a maximum value of 2^32-1 (4294967295 decimal) for
gauges
Thanks again.
Dave Shield <[EMAIL PROTECTED]> wrote:
On Thu, 2005-04-14 at 08:10, Kelvin Moss wrote:
> I have used Unsigned32 counter type in my mib
> When I later retrive it using snmpwalk/snmpget,
> it gets reported as Gauge32
> What is the reason for this ?
Because the two types are exactly the same thing.
>From RFC 2578 (defining SMIv2):
Gauge32 ::=
[APPLICATION 2]
IMPLICIT INTEGER (0..4294967295)
-- an unsigned 32-bit quantity
-- indistinguishable from Gauge32 <======
Unsigned32 ::=
[APPLICATION 2]
IMPLICIT INTEGER (0..4294967295)
We could switch to reporting everything as
Unsigned32 rather than Gauge32, I suppose.
But it hardly seems worth it.
Dave
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products fr om real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com