RE: netsnmp with perl 64 bit handling

2008-11-21 Thread Mike Ayers
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

RE: netsnmp with perl 64 bit handling

2008-11-21 Thread Ambika Tripathy
-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

Re: netsnmp with perl 64 bit handling

2008-11-21 Thread Roy M. Silvernail
On Sat, Nov 22, 2008 at 12:46:57AM +0530, Ambika Tripathy wrote: 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

netsnmp with perl 64 bit handling

2008-11-20 Thread Ambika Tripathy
Hi, I have one perl script which uses to get the ifInOctets and ifOutOctets. The return values are in longer than 32 bit value. like terabytes. How can the perl script handle that. It is not returning 0. But when i used snmpwalk -v 1 -c public localhost | grep Octet I am getting proper value like

Re: netsnmp with perl 64 bit handling

2008-11-20 Thread Roy M. Silvernail
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

RE: netsnmp with perl 64 bit handling

2008-11-20 Thread Mike Ayers
From: Ambika Tripathy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 12:10 PM I have one perl script which uses to get the ifInOctets and ifOutOctets. The return values are in longer than 32 bit value. No they're not. They're defined as 32 bit objects and will only

RE: netsnmp with perl 64 bit handling

2008-11-20 Thread Ambika Tripathy
- From: Roy M. Silvernail [mailto:[EMAIL PROTECTED] Sent: 2008-11-21 03:02 To: Ambika Tripathy Cc: net-snmp-users@lists.sourceforge.net 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