SNMP管理信息库设计

发布于 2024-12-09 14:51:17 字数 119 浏览 1 评论 0原文

我面临着编写新的 MIB 描述的需要。有人知道好的教程或参考吗?我似乎发现了很多关于使用 SNMP 的内容,并且 Net-SNMP 有关于实现代理的不错的内容,但似乎编写 MIB 的唯一真正来源是 RFC。

I'm faced with the need to write a new MIB description. Does anyone know of a good tutorial or reference? I seem to find lots of stuff about using SNMP and Net-SNMP has decent stuff about implementing an agent, but it seems like the only real sources on writing the MIBs are RFCs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

绝對不後悔。 2024-12-16 14:51:17

Mg Soft 公司正在销售一个非常好的工具,名为“Mib Browser”,但他们也编辑一个名为“Visual MIB Builder”的产品,它提供了一种无需处理 ASN1 语法即可构建 MIB 的简单方法。

Mib 是基于 ASN1 语法构建的,您绝对不需要了解所有 ASN1 语言。我写了几张 PPT 幻灯片来解释这一点,但它们是法语的。


编辑(1)

我十二年前构建了 MIB,我通过几本书自学了(Snmpv3 和网络管理实用指南基本 SNMP)。

从语义的角度来看,我想到的前三个建议是:

  1. 了解表是如何构建的以及它们如何工作(get-next 用法和索引)
  2. 看看 文本约定,它们主要出现在 SNMPv2 中,为 SNMPv1 中的隐式用法命名。例如,您将了解 TestAndIncr 如何提供互斥语义。它们在 SNMPv3 中得到了改进。但请注意,您必须在代理中提供执行此操作的代码,它们只是 TC。
  3. 在了解 RMON1 MIB 的工作原理,特别是配置表的使用方面,我学到了很多东西。

只是一个建议,SNMP 是一个很好的协议,它有点旧,除了 SNMPV3 之外,它仍然生活在菩提世界中。我只是说V1和V2只是忽略了安全角度。因此,要小心可写叶子,您可以部署一个主动代理,使用 IPSec 保护 SNMP 端口,但它“昂贵”。

您是否想了解基于 Web 的企业管理 (WBEM)?在 Windows 上,我使用 WMI,这是 Microsoft 对该标准的改编,但在 Linux 上,您可以使用 OpenPegasus

Mg Soft company is selling a very good tool called "Mib Browser" but they also edit a product called "Visual MIB Builder", which provide an easy way to build MIBs without dealling with ASN1 syntax.

Mibs are built on ASN1 syntax, you definitively not need to understand all ASN1 language. I wrote a few PPT slides to explain that, but they are in french.


Edited (1)

I built MIBs twelve years ago, and I learnt by myself with a couple of books (Practical Guide to Snmpv3 and Network Management, Essential SNMP).

On the semantic point of view the first three advices that come in my mind are :

  1. Learn how tables are built and how they works (get-next usage and index)
  2. Have a look to Textual Conventions, they mostly appears in SNMPv2 giving names to implicit usages in SNMPv1. For example you'll read how TestAndIncr provides the mutex semantic. They are improved in SNMPv3. But understand that you have to provide the code for doing that in your agent, they are just TCs.
  3. I learnt a lot in understanding how RMON1 MIB was working, and especialy the usage of configuration tables.

Just an advice, SNMP is a nice protocol, it's a bit old, and except with SNMPV3 it still lives in a boudhist world. I just mean that V1 and V2 are just ignoring the security point of view. So be careful with writable leafs, you can deploy an active agent protecting SNMP ports with IPSec but it's 'expensive'.

Do you have a look to Web-Based Enterprise Management (WBEM) ? On Windows I play with WMI which is Microsoft adaptation of this standard, but on Linux you can play with OpenPegasus.

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