Hi List,

I am having real problems getting net-snmp-5.2.1 to work for me with IPv6 on 
kernel 2.6.8.1 (Debian Sarge); 

Specifically, I need to see the ipRouteTable and the ipv6RouteTable, but I 
cannot see either of them. The test fails on them too.

They appear to be compiled on build and initialised in the agent but they do 
not appear to exist/be visible in the Agent (although I cannot see the ipv6 
tables initialise anywhere in the debug dump output). 

The code in agent/mibgroup/ip-forwarding-mib alludes to IPv6 support and I 
cannot Google anyone up that has this particular problem with net-snmp - 
pointing to some *obvious* malconfiguration or little-used combination of 
parameters that *I* have done.

Anyone, Ever, experienced similar (or actually used ipv6Forwarding tables)?


A (perhaps) related question: 

How are the IPv6 MIB's/Tables pulled in? 

Logically "--with-mib-modules" should do it, however "--enable-ipv6" actually 
performs the task; I am wary that one set of interdependent options/includes 
"tickled" by IPv6 will break each other since nobody else are complaining. 



Some tedious detail:

 

Running "make test":

47:testing RFC-1213 MIB SNMPv1 access............
47.9:Access table at.atTable by SNMPv1...FAIL
................
.......
47.32:Access table ip.ipRouteTable by SNMPv1...FAIL
.
47.33:Access table ip.ipNetToMediaTable by SNMPv1...FAIL
.................
 
etc... for all protocols (and they do not, of course, exist in the agent 
either).



The Build is:

echo timestamp >stamp-h.in
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
  --with-persistent-directory=/var/lib/snmp \
  --enable-mfd-rewrites \
  --enable-ucd-snmp-compatibility \
  --enable-shared --with-cflags="-O2 -D_REENTRANT" \
  --with-perl-modules="INSTALLDIRS=vendor" \
  --enable-ipv6 --with-logfile=/var/log/snmpd.log \
  --with-transports="UDPIPv6 TCPIPv6" \
  --without-rpm --with-libwrap --with-openssl \
  --without-dmalloc --without-efence --without-rsaref \
  --with-sys-contact="root" --with-sys-location="Unknown" \
  --with-mib-modules="host tunnel ip-forward-mib ip-mib/ipAddressTable 
ip-mib/inetNetToMediaTable disman/event-mib disman/expression-mib 
ucd-snmp/lmSensors" \
  --with-defaults \
  --enable-debugging --enable-developer



There *are* warnings:

f.ex: 

if-mib/ifTable/ifTable.c: In function `ifTable_commit':
if-mib/ifTable/ifTable.c:1875: warning: implicit declaration of function 
`netsnmp_access_interface_entry_set_admin_status'

if-mib/data_access/interface_common.c: In function 
`netsnmp_access_interface_init':
if-mib/data_access/interface_common.c:80: warning: implicit declaration of 
function `netsnmp_arch_interface_init'

but ??



With Debug logging says that the modules are there and "something" goes on:

mib_init: initializing: inetCidrRouteTable
trace: init_inetCidrRouteTable(): 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable.c, 43:
verbose:inetCidrRouteTable:init_inetCidrRouteTable: called
trace: should_init(): mib_modules.c, 127:
mib_init: initializing: inetCidrRouteTable
trace: initialize_table_inetCidrRouteTable(): 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable.c, 67:
verbose:inetCidrRouteTable:initialize_table_inetCidrRouteTable: called
trace: _inetCidrRouteTable_initialize_interface(): 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_interface.c, 114:
internal:inetCidrRouteTable:_inetCidrRouteTable_initialize_interface: called
trace: inetCidrRouteTable_init_data(): 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_data_access.c, 59:
verbose:inetCidrRouteTable:inetCidrRouteTable_init_data: called
trace: _inetCidrRouteTable_container_init(): 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_interface.c, 2045:
internal:inetCidrRouteTable:_inetCidrRouteTable_container_init: called
trace: inetCidrRouteTable_container_init(): 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_data_access.c, 108:
verbose:inetCidrRouteTable:inetCidrRouteTable_container_init: called
trace: _inetCidrRouteTable_initialize_interface(): 
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_interface.c, 202:
inetCidrRouteTable:init_inetCidrRouteTable: Registering inetCidrRouteTable as a 
mibs-for-dummies table.
trace: netsnmp_inject_handler_before(): agent_handler.c, 337:
handler:inject: injecting baby_steps before baby_steps_mux
trace: netsnmp_inject_handler_before(): agent_handler.c, 337:
handler:inject: injecting row_merge before baby_steps
trace: netsnmp_inject_handler_before(): agent_handler.c, 337:
handler:inject: injecting table_container before row_merge
trace: netsnmp_inject_handler_before(): agent_handler.c, 337:
handler:inject: injecting cache_handler before table_container
trace: netsnmp_inject_handler_before(): agent_handler.c, 337:
handler:inject: injecting table before cache_handler
trace: netsnmp_register_handler(): agent_handler.c, 212:
handler::register: Registering inetCidrRouteTable 
(::table::cache_handler::table_container::row_merge::baby_steps::baby_steps_mux)
 at IP-MIB::ip.24.7
trace: netsnmp_inject_handler_before(): agent_handler.c, 337:
handler:inject: injecting bulk_to_next before table
trace: netsnmp_register_mib(): agent_registry.c, 587:
register_mib: registering "inetCidrRouteTable" at IP-MIB::ip.24.7
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 160:
subtree: found one for: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 160:
subtree: found one for: ""

This is maybe something:

trace: netsnmp_callback_transport(): snmpCallbackDomain.c, 416:
transport_callback: initialized master listening on 1
trace: which_module(): parse.c, 3640:
parse-mibs: Module SNMPv2-SMI not found
trace: which_module(): parse.c, 3640:
parse-mibs: Module RFC1155-SMI not found
trace: which_module(): parse.c, 3640:
parse-mibs: Module RFC1213-MIB not found



So, how can I possible find out what is wrong?

Frithiof Jensen B.Sc. E.E.
System Developer
Ericsson Telebit A/S
+45 4072 6554
[EMAIL PROTECTED]












-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to