1

I'm trying to create a MIB and have this error, trying to add a "child node" to a parent:

scalar's parent node must be simple node

from simpleweb mib validation

What I'm trying to do is to create parents/childs/elements according to this OID: 1.3.6.1.4.1.1234.1.2.3, I marked the problematic part bold.

Elements "1, 2 and 3" after "1234" have this structure:

myParent1 OBJECT-TYPE
    SYNTAX         Integer32
    UNITS          "test"
    MAX-ACCESS     read-write
    STATUS         current
    DESCRIPTION
        "myParent1"
    DEFVAL { 42 }
::= { myNameOfEnterprise 1 }

myChild2 OBJECT-TYPE
    SYNTAX         Integer32
    UNITS          "test"
    MAX-ACCESS     read-write
    STATUS         current
    DESCRIPTION
        "myChild2"
    DEFVAL { 42 }
::= { myParent1 2 }

But it looks like I can't nest this types, what is simple node and how do I nest it? The elements I try to nest don't have to be of any specific type, its about to understand how the nesting actually works.

4

2 に答える 2

1

検証エラーは、発見したように、MIB ツリー内の 2 つのタイプのノードを指摘することを目的としています。それらを「枝」と「葉」と考えてください。

  • 枝には何の価値もありませんが、そこから葉が生えている場合があります。別のブランチに接続する必要があります。これらは OBJECT IDENTIFIER です。
  • 葉は値を保持しますが、その下にこれ以上葉を持つことはできず、枝に接続する必要があります。これらは OBJECT-TYPE です。
于 2015-08-11T15:44:53.063 に答える