ModSnmp Manual v3.07 - 8.1. Defining Constant OIDs

Download manual: PDF HTML

8.1. Defining Constant OIDs

The Add Constant OID page enables you to define OIDs with constant values.

To add a constant-valued OID, enter the following data and then click Apply:

  • Description. Optionally enter a description of the OID. This is displayed in the Constant OIDs page, but is not used by ModSnmp in any other way.

  • OID. Enter the OID to be mapped. This should be the complete OID, including the instance identifier on the end. For example, you would enter "1.3.6.1.2.1.1.5.0" for the 'sysName' OID.

  • Type. Select the SNMP type to be used when sending the value to SNMP managers.

    ModSnmp supports the following SNMP types for constants (see RFC 2578 for fuller descriptions):

    Table 3. SNMP types

    SNMP type Description
    Integer32 An Integer32 is a signed 32-bit integer (i.e. in the range -2147483648 to 2147483647 decimal). The INTEGER type used in SNMPv1 is identical to Integer32.
    Unsigned32 An Unsigned32 is an unsigned 32-bit integer (i.e. in the range 0 to 4294967295 decimal).
    Gauge32 A Gauge32 is also an unsigned 32-bit integer (i.e. in the range 0 to 4294967295 decimal).
    Counter32 A Counter32 is an unsigned 32-bit integer (i.e. in the range 0 to 4294967295 decimal) that monotonically increases until it reaches a maximum value of 4294967295, when it wraps around and starts increasing again from zero. A Counter32 is read-only.
    TimeTicks A TimeTicks is an unsigned 32-bit integer (i.e. in the range 0 to 4294967295 decimal) that represents a time interval in hundredths of a second.
    Counter64 A Counter64 is an unsigned 64-bit integer (i.e. in the range 0 to 18446744073709551615 decimal) that monotonically increases until it reaches a maximum value of 18446744073709551615, when it wraps around and starts increasing again from zero. A Counter64 is read-only.
    OctetString An OctetString is arbitrary binary or textual data. If you select OctetString, the value will be sent in the SNMP response as UTF-8 text. You may need to restrict the text to the ASCII subset of UTF-8 for it to be displayed correctly by the SNMP manager.
    OID The OID type represents administratively assigned names. Any instance of this type may have at most 128 sub-identifiers. Further, each sub-identifier must not exceed the value 2^32-1 (4294967295 decimal). The value should be entered in dotted-decimal form (e.g. "1.3.6.1.4.1.34171.1.35").
    IpAddress The IpAddress type represents a 32-bit internet address. The value should be entered in dotted-decimal form (e.g. "192.168.0.4").

  • Value. Enter the value to be returned to SNMP managers.