[Xorp-users] Error tryng to launch Net-SNMP via the router manager

Bruce Simpson bms at incunabulum.net
Sun Jun 7 21:39:37 PDT 2009


David Santiago Santos wrote:
> Hello,
>
> I installed the XORP 1.6 and Net-SNMP 5.4.1. Therefore, both of them 
> were compiled without errors.
>
> Although I did the configurations according to the XORP manual, I got 
> an erro tryng to launch it.

Do you specifically need the XORP SNMP functionality? The only things it 
actually provides are the IfMib counters and some access to the BGP 
protocol MIB, which isn't memory efficient for large routing tables. Is 
this a requirement for your deployment of XORP?

>
> Below is the output when I run the command shell "sudo xorp_rtrmgr":
>
> [ 2009/06/04 14:18:49  INFO xorp_rtrmgr:8376 RTRMGR +239 master_conf_tree.cc execute ] Changed modules: interfaces, xorp_if_mib, fea, rib, fib2mrib, policy, static_routes
>
> [ 2009/06/04 14:18:49  INFO xorp_rtrmgr:8376 RTRMGR +96 module_manager.cc execute ] Executing module: interfaces (fea/xorp_fea)
> [ 2009/06/04 14:18:50 INFO xorp_fea MFEA ] MFEA enabled
> [ 2009/06/04 14:18:50 INFO xorp_fea MFEA ] CLI enabled
>
> [ 2009/06/04 14:18:50 INFO xorp_fea MFEA ] CLI started
> [ 2009/06/04 14:18:50 INFO xorp_fea MFEA ] MFEA enabled
> [ 2009/06/04 14:18:50 INFO xorp_fea MFEA ] CLI enabled
> [ 2009/06/04 14:18:50 INFO xorp_fea MFEA ] CLI started
>
> [ 2009/06/04 14:18:51  INFO xorp_rtrmgr:8376 RTRMGR +96 module_manager.cc execute ] Executing module: xorp_if_mib (mibs/snmpdscripts/startsnmp)
> No log handling enabled - turning on stderr logging
> registered debug token xorp_if_mib_module, 1
>
> registered debug token dlmod, 1
> registered debug token usmUser, 1
> netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
> netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
>
> netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()

These are probably benign warnings.

> dlmod: register mib
> dlmod: dlmod_path: /usr/local/lib/snmp/dlmod
> dlmod: dlmod_create_module
> dlmod: dlmod_load_module xorp_if_mib_module: /usr/local/xorp/mibs/xorp_if_mib_module.so
>
> xorp_if_mib_module: XorpIfMib created
> xorp_if_mib_module: Initialized...
> Error opening specified endpoint ""
> Server Exiting with code 1
> xorp_if_mib_module: XorpIfMib destroyed

This sounds like it may be an issue with the net-snmp library 
configuration, or possibly the agent itself.

> [ 2009/06/04 14:18:51  ERROR xorp_rtrmgr:8376 RTRMGR +747 module_manager.cc done_cb ] Command "/usr/lib/xorp/mibs/snmpdscripts/startsnmp": exited with exit status 1.
>

This is the real indication of the failure.

> [ 2009/06/04 14:18:51  INFO xorp_rtrmgr:8376 RTRMGR +318 module_manager.cc module_exited ] Module abnormal exit: xorp_if_mib
> [ 2009/06/04 14:18:53  WARNING xorp_rtrmgr:8376 XrlFinderTarget +406 ../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "xorp_if_mib" does not exist or is not enabled.
>
> [ 2009/06/04 14:18:54  WARNING xorp_rtrmgr:8376 XrlFinderTarget +406 ../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "xorp_if_mib" does not exist or is not enabled.
>
> [ 2009/06/04 14:18:55  WARNING xorp_rtrmgr:8376 XrlFinderTarget +406 ../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "xorp_if_mib" does not exist or is not enabled.
>
> [ 2009/06/04 14:18:56  WARNING xorp_rtrmgr:8376 XrlFinderTarget +406 ../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "xorp_if_mib" does not exist or is not enabled.
>
> [ 2009/06/04 14:18:57  INFO xorp_rtrmgr:8376 RTRMGR +2228 task.cc run_task ] No more tasks to run
> [ 2009/06/04 14:18:57  INFO xorp_rtrmgr:8376 RTRMGR +171 module_manager.cc terminate ] Terminating module: interfaces
>
> [ 2009/06/04 14:18:57  INFO xorp_rtrmgr:8376 RTRMGR +194 module_manager.cc terminate ] Killing module: interfaces
> [ 2009/06/04 14:18:57  ERROR xorp_rtrmgr:8376 RTRMGR +747 module_manager.cc done_cb ] Command "/usr/lib/xorp/fea/xorp_fea": terminated with signal 15.
>
> [ 2009/06/04 14:18:57  INFO xorp_rtrmgr:8376 RTRMGR +282 module_manager.cc module_exited ] Module killed during shutdown: interfaces
>
>   

This is just fallout from the IfMib registration failure and can be ignored.

XORP's SNMP MIB support, as it currently stands is quite minimal, and 
probably not that useful for real deployments. However it does have a 
hard dependency on the ability to load MIB extension modules into the 
main net-snmp agent, snmpd. This is a net-snmp and platform specific 
mechanism.

Are you able to load other, non-XORP, MIB extension modules into snmpd?
Is this system exclusively using IPv6?
Does the host have any network configuration at all before net-snmp runs?

See here for more hints which may help you to debug your net-snmp 
installation:
    http://www.net-snmp.org/docs/man/snmpd.html

Do remember that the community version of XORP is offered on a best 
effort open-source basis, and contributions are very welcome.

thanks,
BMS



More information about the Xorp-users mailing list