no table handler registered for my mib module
"Johns Victor" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <5E0E76B7DCC2B84FAA18C70F3911D3BB018CA319@INDYSMAILMB01.am.thmulti.com> |
Hi All, I am trying to get a simple table based mib working with net-snmp version 5.4.1. The mib module compiles and links. I am currently using mfd to generate the template code. When I try to do an snmpwalk, I get the following cryptic message. End of MIB. If I start off my agent with the following params ./entable -f -L -M -DALL localhost:1162 entable, everything seems to start up correctly. I did a comparision of the log files with a module that seems to work correctly ( ifTable ), and the main difference seems to be that when the snmpwalk pdu is parsed by the agent, it does not find a table to handle the mode GETNEXT. Below is an excerpt from the log file of the mib module that does not seem to work snmp_agent: tp->start iso, tp->end ENTABLE-MIB::ledTable, trace: netsnmp_add_varbind_to_cache(): snmp_agent.c, 1967: verbose:asp: asp 0x826dab8 reqinfo 0x828a010 assigned to request trace: netsnmp_add_varbind_to_cache(): snmp_agent.c, 1974: verbose:asp: asp 0x826dab8 reqinfo 0x828a010 assigned to request trace: netsnmp_call_handlers(): agent_handler.c, 510: handler:calling: main handler bulk_to_next trace: netsnmp_call_handler(): agent_handler.c, 430: handler:calling: calling handler bulk_to_next for mode GETNEXT trace: netsnmp_call_handler(): agent_handler.c, 438: handler:returned: handler bulk_to_next returned 0 trace: netsnmp_call_handler(): agent_handler.c, 430: /* OVJ -- Why is there no table handler for mode GETNEXT ?? * There is one for the ifTable mib, which works ( */ handler:calling: calling handler null for mode GETNEXT trace: netsnmp_null_handler(): null.c, 43: helper:null: Got request trace: netsnmp_null_handler(): null.c, 45: helper:null: oid:NET-SNMP-AGENT-MIB::nsDebugTokenTable When I compare to the module that seems to work, the main difference seems to be that the handler is found in 5th line from end of previous excerpt log. When I generated the code using mib2c, the only difference that I made was to add in some code to read a static data structure. Does anyone know what I am doing wrong here. Thanks Much Victor ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users