[Please keep discussion on the mailing list]

On Sat, 2009-08-15 at 15:42 -0700, Huang, Jack wrote:
> I had not opened my email until I found the source files and figured
> out what is wrong. The following "strtol" should be "strtoul". 
> 
> parse.c:2172:        high = low = strtol(nexttoken, NULL, 10);
> parse.c:2177:        high = strtol(nexttoken, NULL, 10);

You are quite right, that is needed as well. (That we get different
results is due to me running 64 bits)

> From the source code, the program was trying to print ERANGE error to
> a log file when this occurred, but I could not find the log. By the
> way, why don't we print the error to STDERR?

Net-SNMP is designed to to run a a daemon and thus there is no guarantee
that stderr is available.
You could get the effect you are asking for with the -Le command line
option.

> I have another question which you might be able to answer. I tried to
> download the SNMP Perl module, but it asked for netsnmp.lib. Do you
> know where to get it?

I thought that it should be in the windows Net-SNMP package?

/MF

> ---- Download SNMP Perl module from CPAN-----
> The Net-SNMP library (netsnmp.lib) could not be found.
> Please enter the directory where it is located:
> 
> 
> 
> ________________________________________
> From: Magnus Fromreide [[email protected]]
> Sent: Saturday, August 15, 2009 9:53 AM
> To: Huang, Jack
> Cc: [email protected]
> Subject: Re: snmptranslate: range of unsigned32
> 
> On Fri, 2009-08-14 at 15:25 -0700, Huang, Jack wrote:
> > Hello,
> >
> > It looks like there is an issue with the range of unsigned32 in the
> > snmptranslate program. The range of unsigned32 is reported as 0 ..
> > 2147483647, instead of 0..4294967295.
> >
> > Please let me know if you need more information.
> 
> Thanks, this is quite correct. That code assumes that it is printing a
> signed integer.
> 
> /MF
> 
> > Best regards,
> > Cunzhi Huang
> >
> > ==============================
> > {2092} $ snmptranslate -m "mibs" -Tp  | grep -i distminprocess -A 1
> >             |              |  |  |     +-- -R-- Unsigned
> > distMinProcessingTime(6)
> >             |              |  |  |     |        Range: 0..2147483647
> >
> >
> > {2094} $ grep -i distminproc ../mibs/DIST-MIB.txt  -A 1
> >                 distMinProcessingTime,
> >                 distMaxProcessingTime,
> > --
> >         distMinProcessingTime Unsigned32,
> >         distMaxProcessingTime Unsigned32,
> > --
> > distMinProcessingTime OBJECT-TYPE
> >         SYNTAX          Unsigned32(0..4294967295)
> >
> > {2095} $ snmptranslate.exe -V
> > NET-SNMP version: 5.4.2.1
> > ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> > trial. Simplify your report design, integration and deployment - and focus 
> > on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________ Net-snmp-coders mailing 
> > list [email protected] 
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to