SNMP Subagent Programmer's Guide
Encoding MIBs
3-6 119728—SNMP Subagent Programmer’s Guide
Writing and Compiling MIBs
While you are evaluating the Toolkit, you can put your MIB in the subtree named
snmptestarc, defined by Tandem. The object identifier for this subtree is
1.3.6.1.4.1.169.3.155.2:
iso (1)
org (3)
dod (6)
internet (1)
private (4)
enterprises (1)
tandem (169)
nonstopsystems (3)
snmp (155)
snmptestarc (2)
You can obtain MIBs defined by other vendors from the Internet. The directory mib/ on
host venera.isi.edu serves as a public repository of enterprise-specific MIBs.
There are many mailing lists of interest to the MIB definer. Important ones include:
rfc@nic.ddn.mil, which announces new RFCs
snmp@psi.com, which hosts discussions of topics related to SNMP
To subscribe to these lists, send a message to:
list-name-request@host-name
For example:
rfc-request@nic.ddn.mil
Scalar Object Definitions
A scalar object definition assigns a name to a scalar MIB object and describes the
object’s attributes. A scalar MIB object can be associated with a group, a table entry, or
the MIB itself:
myMib
scalarObjectOne
groupOne
scalarObjectTwo
scalarObjectThree
tableOne
tableEntry
scalarObjectFour
scalarObjectFive
Syntax
Encode a definition for each scalar object in your MIB as follows. Extensions to the
standard concise MIB notation, shown in bold type, relate the abstract class defined in
the MIB with how your subagent implements it. Ways to encode MIBs so that standard