14.5. Creating the LAD-MIB

In this section, we'll create our appliance MIB. Refer to the illustration of the LAD-MIB structure in Figure 14-2 for a better idea of how the MIB components interrelate. It may be helpful to refer to this picture as you follow along with the development of the MIB file.

The LAD-MIB is divided into three main sections:

  • ladTraps, containing definitions of traps

  • ladTrapInfo, containing definitions of information objects sent in traps

  • ladSystem, containing definitions of pollable objects

Let's start the detailed walk-through. Again, we'll be showing one or more lines followed by a discussion of what we've shown.

We'll start with the BEGIN statement and the definition of our MIB name:

LAD-MIB DEFINITIONS ::= BEGIN

Hopefully ...

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.