Hi,
Thanks for your suggestion. If we this about 32 bit counters the max
value it can hold is 4294967295. But how the
#snmpwalk -v 1 -c pubic 10.4.0.151 | grep Octet returns such a huge and
valid value like:
IF-MIB::ifInOctets.3 = Counter32:1120513328970
Br,
APT
-----Original Message-----
From: Roy M. Silvernail [mailto:[EMAIL PROTECTED]
Sent: 2008-11-21 03:02
To: Ambika Tripathy
Cc: [email protected]
Subject: Re: netsnmp with perl 64 bit handling
On Fri, Nov 21, 2008 at 01:39:40AM +0530, Ambika Tripathy wrote:
> Hi,
>
> I have one perl script which uses to get the ifInOctets and ifOutOctets.
The
> return values are in longer than 32 bit value.
I have a hard time believing that statement. The IF-MIB::ifInOctets
table is composed of Counter32 types, which cannot hold a value larger
than 4294967295. The High Capacity counters are of type Counter64 and
can present larger values. That table is IF-MIB::ifHCInOctets.
These are representative results from a close-by switch:
$ snmpget -v 2c -c public 10.10.100.147 IF-MIB::ifInOctets.6
IF-MIB::ifInOctets.6 = Counter32: 1601496262
$ snmpget -v 2c -c public 10.10.100.147 IF-MIB::ifHCInOctets.6
IF-MIB::ifHCInOctets.6 = Counter64: 48846137879
--
Roy M. Silvernail is [EMAIL PROTECTED], and you're not
"A desperate disease requires a dangerous remedy."
- Guy Fawkes
http://www.rant-central.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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