Hello,
I wrote my own mib file and snmp translate run successfully on
the NetCounterTablein this mib.
Here is an output of snmptranslate
snmptranslate -On -Td -IR CODS-NETCTR-MIB::NetCounterTable
.1.3.6.1.4.1.37010.6
NetCounterTable OBJECT-TYPE
-- FROM CODS-NETCTR-MIB
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "A list of Network counters tables."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
sagunaCods(37010) 6 }
I've also successfully run the mib2c utility, and code generation. I
compiled the code as subagent and run it.
Debug messages shows that registration of my OID is going well.
But i have the problem when run snmptable:
$ snmptable -v 2c -c private localhost -Os NetCounterTable
NetCounterTable: Unknown Object Identifier (Sub-id not found: (top) ->
NetCounterTable)
Then i tried with explicitly specified MIB file and got "No entries"
message:
$ env MIBS="+CODS-NETCTR-MIB" snmptable -v 2c -c private localhost -Os
NetCounterTable
NetCounterTable: No entries
I set the DEBUG tokens to "ALL" and there is an output from
"netsnmp_register_table(reginfo, tbl_info);
handler::register: Registering NetCounterTable
(::table::cache_handler::table_container::row_merge::baby_steps::baby_steps_mu
trace: netsnmp_inject_handler_before(): agent_handler.c, 342:
handler:inject: injecting bulk_to_next before table
trace: netsnmp_register_mib(): agent_registry.c, 611:
register_mib: registering "NetCounterTable" at iso.3.6.1.4.1.37010.6 with
context "(null)"
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: ""
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1493:
wtest: oid in: iso.3.6.1.4.1.37010.6
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1504:
wtest: oid cmp: ccitt --- off = 0, in off = 0 test = 1
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1504:
wtest: oid cmp: iso --- off = 1, in off = 1 test = 1
trace: netsnmp_subtree_find_prev(): agent_registry.c, 1504:
wtest: oid cmp: joint-iso-ccitt --- off = 1, in off = 2 test = 1
trace: _callback_lock(): callback.c, 120:
9:callback:lock: locked (APP,null)
trace: snmp_call_callbacks(): callback.c, 310:
callback: START calling callbacks for maj=1 min=1
trace: snmp_call_callbacks(): callback.c, 336:
callback: END calling callbacks for maj=1 min=1 (0 called)
trace: _callback_unlock(): callback.c, 152:
9:callback:lock: unlocked (APP,null)
It seems to me that my table's OID registration pass well.
Can somebody explain, why " No Entries " message printed?
Should I add Entries somehow?
Thanks Evgen
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
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