有什么理解SNMP MIB的好资源?

时间:2021-03-21 03:05:02

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.

我对SNMP知之甚少,但还不够。我需要开发一个可以读取标准SNMP MIB并读取/写入各种属性的应用程序。网络端没有问题,但实际的MIB以及它们可能包含的内容对我来说是一种黑色艺术。

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.

我相信我应该能够使用LIBSMI来“解析”MIB,但我真的不明白'解析器'的输出是什么,以及如何最好地使用它。

All suggestions welcome...

欢迎所有建议......

3 个解决方案

#1


3  

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.

冒着把你扔到最后的风险,你可能想看看net-snmp。默认安装包含许多标准mib及其关联的实现。它还包含一个实用程序(mib2c),它将从您的mib文件生成样板代码。

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.

一旦你通过几个mibs阅读了自己的方式,你就可以毫不费力地熟悉snmp做事的方式。

#2


1  

Most standard MIB documents were defined in corresponding RFCs published at IETF.

大多数标准MIB文档在IETF发布的相应RFC中定义。

http://www.ietf.org/

Please go to this site to find more details.

请访问此站点以查找更多详细信息。

#3


0  

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.

Muonics Mib Smithy用户指南提供了如何构建MIB的良好概述,它可以帮助您了解解析所需的元素。

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.

您还应该查看ASN.1 ITU规范X.690,因为这是SNMP定义的语言。如果您在SNMP RFC中搜索任何Bachus-Naur格式的SNMP RFC,它也会有所帮助。我建议你从RFC3642和RFC2252开始。

#1


3  

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.

冒着把你扔到最后的风险,你可能想看看net-snmp。默认安装包含许多标准mib及其关联的实现。它还包含一个实用程序(mib2c),它将从您的mib文件生成样板代码。

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.

一旦你通过几个mibs阅读了自己的方式,你就可以毫不费力地熟悉snmp做事的方式。

#2


1  

Most standard MIB documents were defined in corresponding RFCs published at IETF.

大多数标准MIB文档在IETF发布的相应RFC中定义。

http://www.ietf.org/

Please go to this site to find more details.

请访问此站点以查找更多详细信息。

#3


0  

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.

Muonics Mib Smithy用户指南提供了如何构建MIB的良好概述,它可以帮助您了解解析所需的元素。

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.

您还应该查看ASN.1 ITU规范X.690,因为这是SNMP定义的语言。如果您在SNMP RFC中搜索任何Bachus-Naur格式的SNMP RFC,它也会有所帮助。我建议你从RFC3642和RFC2252开始。