MIBs do not contain values. They only define names and types of values that SNMP agent (a hardware device or an application) reports back to SNMP manager.
In your snippet you referred to OBJECT IDENTIFIER
that serves as a "name" for a value-less node in OID tree. Typically, one or more OBJECT TYPE
clauses are logically linked beneath OBJECT IDENTIFIER
where OBJECT TYPE
define both "name" and "value type" for SNMP data coming from SNMP agent.
In the following example sysUpTime
is linked under the value-less system
(1.3.6.1.2.1.1
) node in the OID tree. Here sysUpTime
serves as a name (corresponding to the 1.3.6.1.2.1.1.3
node) for addressing values of type TimeTicks
:
system OBJECT IDENTIFIER ::= { mib-2 1 }
sysUpTime OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The time (in hundredths of a second) since
the network management portion of the system
was last re-initialized."
::= { system 3 }
MIBs are mostly useful for humans (operating SNMP managers) to read, interpret and navigate SNMP data provided by SNMP agent. It is entirely possible to operate SNMP without any MIB files. At the protocol level only OIDs are used for referring to values.
You may find this explanation relevant to your question.