B.11. SNMP Tables

In addition to the simple types described above, tables may be described using SEQUENCE and SEQUENCE OF. A table in a MIB is described as a SEQUENCE OF a type that describes the entry. The table entry is then described as a SEQUENCE containing the individual fields of the entry. The entry type describes the columns that constitute each row in the table, while the table itself is described as an array of these entry structures.

For example, here's the definition of the interfaces table from MIB-2:

 ifTable OBJECT-TYPE SYNTAX SEQUENCE OF IfEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A list of interface entries. The number of entries is given by the value of ifNumber." ::= { interfaces 2 } ifEntry OBJECT-TYPE SYNTAX ...

Get Linux Appliance Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.