Hi Mike,

>From the actual output string is:

snmpwalk -v 1 -c public localhost | grep Octets
IF-MIB::ifInOctets.1 = Counter32: 8461246
IF-MIB::ifInOctets.2 = Counter32: 28868802
IF-MIB::ifInOctets.3 = Counter32: 1120513328970
IF-MIB::ifOutOctets.1 = Counter32: 8463031
IF-MIB::ifOutOctets.2 = Counter32: 572128134
IF-MIB::ifOutOctets.3 = Counter32: 396

And my snmpd version is net-snmp-5.0.11.2 and sorry to mention that I had
modified the agent\mibgroup\mibII\interfaces.c file to handle long long type
integer. Today I show the 5.4.2.1 version supports 64 but not the 5.0.11.2
and I found if my interface modification is not there, then 32 bit is unable
to get the value in 5.0.11.2 version.

But my question is since it is coming with snmpget and snmpwalk why I can't
the same value using perl script I have attached below? I have build the
same source codes for perl also.

Br,
APT


-----Original Message-----
From: Mike Ayers [mailto:[EMAIL PROTECTED] 
Sent: 2008-11-22 00:32
To: Ambika Tripathy; Roy M. Silvernail
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: netsnmp with perl 64 bit handling

> From: Ambika Tripathy [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 20, 2008 9:53 PM

>       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

        Is this an actual exchange?  Do you actually use "pubic" as a
community?

        Also, try snmpget of the value.


        Thanks,

Mike



-------------------------------------------------------------------------
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
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

Reply via email to