Hitachi

JP1 Version 12 JP1/Extensible SNMP Agent Description, Operator's Guide and Reference


2.10.1 Defining MIB objects

You can define one or more MIB objects in a MIB module, and group and define them as one or more subtrees. For each subtree, you can define a maximum of 200 nodes.

To define MIB objects:

  1. List all the MIB objects that you want to add to SNMP Agent.

  2. Determine the logical configuration of the MIB objects.

    Organize your MIB objects into logical groups. For example, the MIB objects sysDescr,sysObjectID, sysUpTime, sysContact, sysName, sysLocation, and sysServices all belong to the systems group. For more examples, see the MIB modules in the /var/opt/OV/share/snmp_mibs directory.

  3. Define all the nodes in each subtree.

    Define all the nodes in each subtree. Keep in mind that nodes can be children of other nodes.

    When you define nodes, observe the following rules defined by ASN.1:

    • Any number of letters, numeric characters, and hyphens are allowed.

    • Begin with a lower case letter.

    • Do not end with a hyphen.

    • Do not use multiple hyphens consecutively.

    • Do not use underscores.

    The following rules also apply:

    • End the counter with the character s.

    • Make each node name unique.

  4. Define the leaf nodes in the subtree.

    Define the actual object (leaf node in the subtree).

    When you define the actual object, assign a unique name. The following are common conventions for determining object names:

    • Start all object names in a group with a prefix that can be derived from the group name. For example, the objects in the systems group all begin with the prefix sys.

    • Capitalize the character after the prefix. For example, Contact is capitalized in the object name sysContact.

  5. Determine where to place the object in the MIB tree.

    Determine the location of the object in the MIB tree.

    To ensure that your object IDs are unique, add your MIBs under your own company (enterprise) name in the enterprises subtree.

    To use a unique enterprise ID, you can register your enterprise ID with the following:

    Internet Assigned Numbers Authority
    URL:http://www.iana.org/
    Email:iana-mib@iana.org

    The benefit of registering your enterprise ID with the Internet Assigned Numbers Authority (IANA) is that you can control your own MIB and avoid conflict with other MIBs.