有哪些了解 SNMP MIB 的好资源?
我对 SNMP 有一点了解,但还不够。 我需要开发一个可以读取标准 SNMP MIB 并读/写各种属性的应用程序。 网络端没问题,但实际的 MIB 以及它们可能包含的内容对我来说有点像魔法。
我相信我应该能够使用 LIBSMI 来“解析”MIB,但我并不真正理解“解析器”的输出是什么,以及如何最好地使用它。
欢迎所有建议...
I know a little about SNMP, but not enough. I need to develop an application that can read standard SNMP MIBs and read/write the various properties. The network end is no problem, but the actual MIBs and exactly what they may contain is something of a black art to me.
I believe I should be able to use LIBSMI to 'parse' the MIBs, but I don't really understand what the output of the 'parser' is going to be, and how best to use it.
All suggestions welcome...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
冒着让你深陷困境的风险,你可能想看看 net-snmp。 默认安装包含许多标准 mib 及其相关实现。 它还包含一个实用程序 (mib2c),可以从您的 mib 文件生成样板代码。
一旦您阅读了一些 mib,您应该可以毫无困难地熟悉 snmp 的工作方式。
At the risk of throwing you in the deep end, you might want to take a look at net-snmp. The default installation contains a number of standard mibs with their associated implementation. It also contains a utility (mib2c) that will generate boilerplate code from your mib files.
Once you've read your way through a couple of mibs you should have no trouble familiarising yourself with the way that snmp does things.
大多数标准 MIB 文档都是在 IETF 发布的相应 RFC 中定义的。
http://www.ietf.org/
请访问此网站了解更多详细信息。
Most standard MIB documents were defined in corresponding RFCs published at IETF.
http://www.ietf.org/
Please go to this site to find more details.
Muonics Mib Smithy 用户指南 很好地概述了如何构建 MIB,它可以帮助您理解解析所需的元素。
您还应该查看 ASN.1 ITU 规范 X。 690,因为这是定义 SNMP 的语言。如果您在 SNMP RFC 中搜索 SNMP RFC 中的任何 Bachus-Naur 格式,这也会有所帮助。 我建议您从 RFC3642 和 RFC2252 开始。
Muonics Mib Smithy User Guide provides a good overview of how to build a MIB, which can help you understand the necessary elements for parsing.
You should also look at the ASN.1 ITU specification X.690, because that is the language SNMP is defined in. It also helps if you scour the SNMP RFCs for any Bachus-Naur formatting in the SNMP RFCs. I'm going to suggest you start with RFC3642 and RFC2252.