[Xorp-users] Testing snmp

Pavlin Radoslavov pavlin at icir.org
Fri Mar 30 20:09:20 PDT 2007


> I'm new to using net-snmp but I would like to test using the snmp in Xorp.
> I've already managed to compile Xorp 1.4 with the --with-snmp option.  But I
> cannot find where the bgp4_mib_1657.so goes.  I haven't changed any of the
> code.  I was expecting it to be in /usr/local/xorp/mibs or if not in the
> source directory xorp-1.4/mibs.
> 
> The following were the steps I did:
> 1. ./configure --with-snmp --enable-shared
> 2. gmake
> 3. gmake install
> 
> Could you give me guidance on what I'm doing wrong or what I'm supposed to
> expect?

The bgp4_mib_1657.so file is suppose to be installed under
/usr/local/xorp/mibs .
I just tried it on FreeBSD-6.2 amd64 and the file was installed as
expected in that directory.
Make sure that you start with a clean directory just in case there
is no some leftover state.

For reference, below are some of the log messages when I run
"gmake install":


g++ -shared   bgp4_mib_1657.lo bgp4_mib_1657_bgpversion.lo bgp4_mib_1657_bgplocalas.lo bgp4_mib_1657_bgpidentifier.lo bgp4_mib_1657_bgppeertable.lo bgp4_mib_1657_bgp4pathattrtable.lo bgp4_mib_xrl_target.lo -Wl,--whole-archive ../xrl/targets/.libs/libbgp4mibbase.al ../xrl/interfaces/.libs/libbgpxif.al -Wl,--no-whole-archive  -L/usr/local/xorp/mibs/. -lnetsnmpxorp ../xrl/targets/.libs/libbgp4mibbase.al ../xrl/interfaces/.libs/libbgpxif.al -lcrypto  -Wl,-soname -Wl,bgp4_mib_1657.so -o .libs/bgp4_mib_1657.so
/usr/bin/install -c .libs/bgp4_mib_1657.soT /usr/local/xorp/mibs/./bgp4_mib_1657.so
/usr/bin/install -c .libs/bgp4_mib_1657.lai /usr/local/xorp/mibs/./bgp4_mib_1657.la

Note that the bgp4_mib_1657.so file is compiled inside the
local mibs/.libs directory but is installed inside the
/usr/local/xorp/mibs directory.

Regards,
Pavlin



More information about the Xorp-users mailing list