简体   繁体   English

SNMP MIB设计

[英]SNMP MIB design

I'm faced with the need to write a new MIB description. 我面临着编写新的MIB描述的需要。 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. 我似乎发现很多关于使用 SNMP的东西,而Net-SNMP在实现代理方面有很多东西,但似乎编写MIB的唯一真正的来源是RFC。

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. Mg Soft公司正在销售一种名为“Mib Browser”的非常好的工具,但他们也编辑了一个名为“Visual MIB Builder”的产品,这种产品提供了一种简单的方法来构建MIB而无需使用ASN1语法。

Mibs are built on ASN1 syntax, you definitively not need to understand all ASN1 language. Mibs是基于ASN1语法构建的,您绝对不需要了解所有ASN1语言。 I wrote a few PPT slides to explain that, but they are in french. 我写了一些PPT幻灯片来解释,但它们都是法语。


Edited (1) 编辑(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 ). 我十二年前建立了MIB,我自己学习了几本书( Snmpv3实用指南和网络管理基本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. 查看文本约定 ,它们主要出现在SNMPv2中,为SNMPv1中的隐式用法命名。 For example you'll read how TestAndIncr provides the mutex semantic. 例如,您将了解TestAndIncr如何提供互斥锁语义。 They are improved in SNMPv3. 它们在SNMPv3中得到了改进。 But understand that you have to provide the code for doing that in your agent, they are just TCs. 但是要明白,你必须提供在你的代理中执行该操作的代码,它们只是TC。
  3. I learnt a lot in understanding how RMON1 MIB was working, and especialy the usage of configuration tables. 我在理解RMON1 MIB如何工作方面学到了很多东西,特别是在配置表的使用方面。

Just an advice, SNMP is a nice protocol, it's a bit old, and except with SNMPV3 it still lives in a boudhist world. 只是一个建议,SNMP是一个很好的协议,它有点旧,除了SNMPV3它仍然生活在一个boudhist世界。 I just mean that V1 and V2 are just ignoring the security point of view. 我只是说V1和V2只是忽略了安全的观点。 So be careful with writable leafs, you can deploy an active agent protecting SNMP ports with IPSec but it's 'expensive'. 因此,请注意可写叶子,您可以使用IPSec部署保护SNMP端口的活动代理,但它“昂贵”。

Do you have a look to Web-Based Enterprise Management (WBEM) ? 您是否关注基于Web的企业管理 (WBEM)? On Windows I play with WMI which is Microsoft adaptation of this standard, but on Linux you can play with OpenPegasus . 在Windows上,我使用WMI,这是微软改编的标准,但在Linux上你可以使用OpenPegasus

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM