NET-SNMP can not translate multi-index!

"Ying Wang(CD)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <102DD20C03D522419F76934805171ECE506961@sh-exch2003.nt-fsrvr.o2micro.com>
I want to use name instead of oid to access data though net-snmp, so I
do following work:

 

All bases on net-snmp-5.2.rc4.

 

1. I add my private mibs into the net-snmp configure file, like this:

if test "x$mini_agent" = "xyes"; then

new_module_list="......"

default_mibs=SNMPv2-MIB:RFC1213-MIB

default_mibs_install=" "

else

new_module_list="mibII/vacm_vars mibII/vacm_conf mibII/vacm_context
snmpv3mibs ucd_snmp $new_with_mib_modules"

default_mibs=IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB
:RFC1213-MIB:PRIVATE-MIB

 

2. After recompile and reinstall net-snmp, I can use name to access
uni-index table and scalar data.

   But, access to multi-index table fails!

   2.1 Run net-snmp with debug "snmpd -D", the debug information stops
in:

       ......

       trace: netsnmp_handle_request(): snmp_agent.c, 2975:

results: request results (status = 0):

trace: netsnmp_handle_request(): snmp_agent.c, 2978:

results: (stop here!)

   2.2 Run net-snmp without debug "snmpd", "segment fault" appears!

 

Please help me! Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.