有哪些了解 SNMP MIB 的好资源?

发布于 2024-07-06 18:36:22 字数 195 浏览 4 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

三岁铭 2024-07-13 18:36:22

冒着让你深陷困境的风险,你可能想看看 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.

相权↑美人 2024-07-13 18:36:22

大多数标准 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.

街道布景 2024-07-13 18:36:22

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文