SNMP MIB SMIv2 Conformance Group Issue

此生再无相见时 提交于 2019-12-05 01:41:12

It simply means you should define OBJECT-GROUP entities before defining OBJECT-TYPE entities in your MIB document.

Take RFC 1907 as example,

http://tools.ietf.org/html/rfc1907

snmpGroup OBJECT-GROUP
    OBJECTS { snmpInPkts,
              snmpInBadVersions,
              snmpInASNParseErrs,
              snmpSilentDrops,
              snmpProxyDrops,
              snmpEnableAuthenTraps }
    STATUS  current
    DESCRIPTION
            "A collection of objects providing basic instrumentation and
            control of an SNMPv2 entity."
    ::= { snmpMIBGroups 8 }

is defined first, and then

snmpInPkts OBJECT-TYPE
    SYNTAX     Counter32
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
            "The total number of messages delivered to the SNMP entity
            from the transport service."
    ::= { snmp 1 }

About why groups are important, you can read RFC 2580.

http://tools.ietf.org/html/rfc2580

Since you are going to define groups, then adding associated MODULE-COMPLIANCE is recommended.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!