On 11/12/09 12:39 AM, Dave Shield wrote:
> 2009/11/11 Mike Bowie <[email protected]>:
>> pkgsrc is currently building 5.4.2.1.
> 
> OK - so it's a recent release.
> 
>> $ snmpwalk -v1 -c public 127.0.0.1 | grep "should be"
>> IP-MIB::ipForwarding.0 = Wrong Type (should be INTEGER): Counter32: 4601253
> 
> Let's concentrate on that one to start.
> The thing that worries me is that it's not simply a wrong value,
> but the type is incorrect too.
> 
> I get the impression that you're working with a source-compiled
> package (not just ready-provided binaries).   Can you please
> check which files are being compiled (and hence used) to return
> this value.
>    Please take a look under 'agent/mibgroup/mibII'  (ip.*) and
> 'agent/mibgroup/ip-mib'  (ip_scalars.*).    Where are the object
> files being created?    That should help identify which code we
> should be looking at.

Dave,

I'm hoping this is what you're looking for... it doesn't seem like
enough to me, but I may have misinterpreted your directions.

$ cd /usr/pkgsrc/net/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup/mibII
&& ls -la ip.*
-rw-r--r--  1 root  wheel  26461 Nov 13 02:30 ip.c
-rw-r--r--  1 root  wheel  26245 Jun  5  2008 ip.c.orig
-rw-r--r--  1 root  wheel   1888 Oct 24  2005 ip.h
-rw-r--r--  1 root  wheel    303 Nov 13 02:33 ip.lo
-rw-r--r--  1 root  wheel  12544 Nov 13 02:33 ip.o

$ cd
/usr/pkgsrc/net/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup/ip-mib &&
ls -la ip_scalars.*
-rw-r--r--  1 root  wheel  5036 Mar 12  2007 ip_scalars.c
-rw-r--r--  1 root  wheel   120 Dec 11  2005 ip_scalars.h

pkgsrc is generating the following configure line:
./configure --enable-shared --with-defaults --sysconfdir=/usr/pkg/etc
--with-libwrap=/usr/lib [email protected]
--with-sys-location=defaultlocatio
n --with-logfile=none --with-persistent-directory=/var/net-snmp
--with-mibdirs=\$HOME/.snmp/mibs:/usr/pkg/share/snmp/mibs:/usr/pkg/lib/tcl/tnm2.1.10/mibs:/usr/local/share/snmp/mib
s --with-mib-modules=smux host ucd-snmp/diskio
--with-out-mib-modules=host/hr_swrun --with-dummy-values
--enable-ucd-snmp-compatibility --with-perl-modules=INSTALLDIRS=vendor --en
able-ipv6 --without-openssl --prefix=/usr/pkg --host=x86_64--netbsd
--mandir=/usr/pkg/man

The console messages I didn't have access to previously (which some
Google results have suggested can be ignored) is:
Nov 13 02:43:18 netbsd5-0-stable-amd64 snmpd[13929]: nlist err: neither
ipstat nor _ipstat found.
Nov 13 02:43:18 netbsd5-0-stable-amd64 snmpd[13929]: nlist err: neither
tcpstat nor _tcpstat found.
Nov 13 02:43:18 netbsd5-0-stable-amd64 snmpd[13929]: nlist err: neither
icmpstat nor _icmpstat found.
Nov 13 02:43:18 netbsd5-0-stable-amd64 snmpd[13929]: nlist err: neither
udpstat nor _udpstat found.

Sincerest thanks for your assistance!

Cheers,

Mike.

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