1

I'm trying to add a mib module to my snmp agent but i'm missing something.

first I add the mib file to the folder /usr/share/snmp/mibs. The mib file its DNS-SERVER-MIB and I download it from here.

Then of that I add the mib to the tool following steps.

Now, When I use the command snmptranslare 1.3.6.1.2.1.32 And the answer is DNS-SERVER-MIB::dns.

Now, When I tip

snmpwalk -v2c -c local 127.0.0.1 .1.3.6.1.2.1.32

Show the output

rt09:/usr/share/snmp# snmpwalk -v2c -c local 127.0.0.1 .1.3.6.1.2.1.32

DNS-SERVER-MIB::dns = No Such Object avaiable on this agent at this OUI

this is the my snmpd.conf file

com2sec read 127.0.0.1 local

com2sec readwrite

10.2.4.1 privada

group admin v2c readwrite

group all v2c read

view dns included .iso.org.dod.internet.mgmt.mib-2

access admin "" any noauth exact dns dns none

access all "" any noauth exact dns none none

If someone can help my I appreciate that

4

1 回答 1

1

通过将 MIB 文档放入该文件夹来自动扩展 Net-SNMP 并没有什么神奇之处。您将不得不编写一个新的 MIB 模块或使用其他扩展方法。以下博客文章确实提供了有关如何扩展 Net-SNMP 的提示和示例,并帮助您入门,

http://vincent.bernat.im/en/blog/2012-extending-netsnmp.html

于 2013-06-14T08:36:47.683 回答