MIBS
The syntax of the MIB description file can formally be specified as follows:
file := tree | tree file
tree := head elements )
entry := head : index STRING elements )
leaf := head TYPE STRING ACCESS )
column := head TYPE ACCESS )
head := ( INT STRING
elements := EMPTY | elements element
element := tree | leaf
index := TYPE | index TYPE
TYPE specifies a SNMP data type and may be one of
- NULL
- INTEGER
- INTEGER32 (same as INTEGER)
- UNSIGNED32 (same as GAUGE)
- OCTETSTRING
- IPADDRESS
- OID
- TIMETICKS
- COUNTER
- GAUGE
- COUNTER64
ACCESS specifies the accessibility of the MIB variable (which operation can be performed) and is one of
INT is a decimal integer and STRING is any string starting with a letter or underscore and consisting of letters, digits and underscores, that is not one of the keywords.
EXAMPLES
The following MIB description describes the system group:
(1 internet
(2 mgmt
(1 mibII
(1 system
(1 sysDescr OCTETSTRING op_system_group GET)
(2 sysObjectId OID op_system_group GET)
(3 sysUpTime TIMETICKS op_system_group GET)
(4 sysContact OCTETSTRING op_system_group GET SET)
(5 sysName OCTETSTRING op_system_group GET SET)
(6 sysLocation OCTETSTRING op_system_group GET SET)
(7 sysServices INTEGER op_system_group GET)
(8 sysORLastChange TIMETICKS op_system_group GET)
(9 sysORTable
(1 sysOREntry : INTEGER op_or_table
(1 sysORIndex INTEGER)
(2 sysORID OID GET)
(3 sysORDescr OCTETSTRING GET)
(4 sysORUpTime TIMETICKS GET)
))
)
)
)
)
SEE ALSO
snmpd(1)
AUTHORS