企业标识符以下节点的 SNMP MIB 结构约定
我开发了一个 Linux/Umbutu 程序,运行在基于 P 的嵌入式设备上。我希望这段代码能够发送和接收整个产品的 SNMP 数据。因此,我知道公司级别的 OID 1.3.6.1.4.1.34843,而且我还知道我们销售的两款支持 SNMP 的产品是 1.3.6.1.4.1.34843.1 和 1.3.6.1.4.1.34843.2。很确定我的将是 0.3。
问题是,此点以下的节点是否有已知的结构/约定?我读到的内容似乎暗示我可以使用我想要的任何结构。 ...34843.1.0 会存在吗?它是一个节点来获取(获取)同级节点的列表或最大计数吗? ...34843.1.0.0 会存在吗?这有什么意义吗?开发前两个 MIB 的人已经出城一段时间了,我不能真正问他,当他给我答案时,我想确保我理解他的答案。
是否有描述所需/建议组织的文档?可能是一些 RFC,对吧。那么,是否存在人类语言的文档呢?
提前致谢。
I have developed a Linux/Umbutu program running on what will be an imbedded P-based device. I wish for that piece of code to be able to send and receive the SNMP data for the entire product. So, I know the OID down to the company level, 1.3.6.1.4.1.34843, and I further know that the two SNMP enabled products we sell are 1.3.6.1.4.1.34843.1 and 1.3.6.1.4.1.34843.2. Pretty sure mine will be .3.
The question is, is there a known structure/convention for the nodes below this point? What I read seems to imply that I can use whatever structure I want. Would ...34843.1.0 exist? Is it a node to fetch (get) the list or max-count of same-level nodes? Would ...34843.1.0.0 exist? Would it make any sense? The guy who developed the first two MIBs is out of town for a while and I can't really ask him, and I'd like to make sure I understand his answer when he gives it to me.
Is there a document that describes the required/suggested organization? Probably some RFC, right. So, is there a document in a language spoken by humans?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最受欢迎的资源是 Perkins 和 McGinnis 编写的
understanding SNMP MIBs
一书。它以更易读的格式描述 MIB。 Net-SNMP 在线教程也可能有帮助,因为他们讨论了关于 MIB 的很多内容。如果您想要 RFC,那么 RFC2578 是正确的阅读内容。快速层次结构指南将类似于:
There is a lot more guidance that can be found in the books and other sources listed above than can be repeated here, of course. RFCs 4181, and 5249 may be helpful as well.
The most popular resource is the
understanding SNMP MIBs
book by Perkins and McGinnis. It describes MIBs in a more readable format. The Net-SNMP tutorials online might be helpful too, as they discuss a lot about MIBs. If you want the RFC, then RFC2578 is the right thing to read.The quick hierarchy guidance would be something along the lines of:
There is a lot more guidance that can be found in the books and other sources listed above than can be repeated here, of course. RFCs 4181, and 5249 may be helpful as well.