Error when importing a mib into Spectrum

Document ID : KB000072573
Last Modified Date : 05/03/2018
Show Technical Document Details
Question:
Why do we get the following error on import into mib-tools in Spectrum?

"The selected file does not appear to be a valid MIB: a DEFINITIONS statement was not found."
Environment:
All supported platforms.
Answer:
To make the SNMP management information base (MIB) extensible, related items are arranged into MIB modules that form a structured hierarchy.
Each MIB module is defined inside the following construct:

ModuleName DEFINITIONS ::= BEGIN END

If a mib produces a "DEFINITIONS statement was not found" error, check if the above required structure was followed.
In an actual example below, we see a space missing before the "BEGIN" statement

ACTIVID-APPLIANCE-MIB DEFINITIONS ::=BEGIN
Changing it to add a space, makes it compliant and allows Spectrum to import it.
ACTIVID-APPLIANCE-MIB DEFINITIONS ::= BEGIN
Additional Information:
For more information on ​the Structure of Management Information Version 2 (SMIv2), see 
https://tools.ietf.org/html/rfc2578