SNMP Subagent Programmer's Guide
Encoding MIBs
3-12 119728—SNMP Subagent Programmer’s Guide
Writing and Compiling MIBs
encoding is kept separate from the extensions are discussed later in this section, under
“Isolating Standard Definitions.”
table-name
is a logical name for the table
SYNTAX SEQUENCE OF Entry-Name
asserts that the table consists of a collection of entries identified by Entry-Name.
STATUS, DESCRIPTION, and REFERENCE clauses
are as described earlier in this section, under “Scalar Object Definitions.”
table-object-name
identifies the subtree in which the table resides and a number for the table, as
defined earlier in this section for object-name, under “Object Name Definitions.”
The name of the subtree in which the table resides can be a MIB name or a group
name.
Entry-Name
is the logical name for an entry in the table. By convention, this name is coded
using an initial capital letter:
SYNTAX SEQENCE OF TableEntry
table-name OBJECT-TYPE
SYNTAX SEQUENCE OF Entry-Name
ACCESS not-accessible
STATUS support-type
[DESCRIPTION "table-description"]
[REFERENCE "cross-reference"]
:: = "{" table-object-name "}"
entry-name OBJECT-TYPE
SYNTAX Entry-Name
ACCESS not-accessible
STATUS support-type
[DESCRIPTION "entry-description"]
[REFERENCE "cross-reference"]
INDEX {index-list [C_NEXT_FUNC next-function-name]} ...
:: = "{" entry-object-name "}"
Entry-Name ::= SEQUENCE
"{" scalar-object-name scalar-object-syntax
[,scalar-object-name scalar-object-syntax...] "}"
scalar-object-definition ...