Re:[snmp agnet] Cannot find module (IP-MIB)
狄卫华 <[email protected]>
| Newsgroups | gmane.network.net-snmp.user,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
I think the problem is that you modified the mib_module_inits.h by hand. If you want to add a private MIB, you can use the "./configure" directive, typing "./configure -h" to get more details.
see also:
http://www.net-snmp.org/FAQ.html#How_do_I_add_a_MIB_
Hi guys,
I port net-snmp to STLinux
and I'm very glad that the net-snmp works very well !!
but when I import some private MIBs and write down my code
something strange happened to me.
Initialize STBMgnt MIB //these two are my private mib and I
Initialize STBStats MIB // print these lines in init_stbmgnt() and init_stbstats()
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
/usr/local/share/snmp/snmpd.conf: line 77: Warning: Unknown token: syslocation.
/usr/local/share/snmp/snmpd.conf: line 78: Warning: Unknown token: syscontact.
/usr/local/share/snmp/snmpd.conf: line 79: Warning: Unknown token: sysname.
my develop steps are
(1) Edit my private MIBs
(2) Write .h and .c code ( I don't use mib2c script but reference the system_mib.c code)
(3) put them into ${PRJPATH}/agent/mibgroup
(4) modify mib_module_inits.h
(5) modify mib_module_include.h
(6) modify Makefiles (agent and agent/mibgroup)
Did I miss something ? or some advices for me?
Thanks <( ~~)__v
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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