Problem

MIB files do not compile because of missing imported MIB files or with missing object definitions from standard SMI MIIBs. 

Solution

SNMP4J-SMI and SNMP4J-SMI-PRO provide built-in MIB modules (see table below) that are part of the SMIv1 and SMIv2 specifications.

Although you could compile your own versions of those MIB modules, it is strongly recommended to never compile your own versions for the following reasons:

  1. The original MIB specifications of those modules are written in ASN.1 and not SMI because those MIB modules are meant to define SMI. Thus, those MIB modules boot the SMI standard using ASN.1. A SMI compiler will and should not be able to compile them properly.
  2. In the World Wide Web there exists many versions of those MIB modules which were modified in many ways - often to circumvent (1) but also to add company specific "extensions" or modifications. Any of those generally prohibit a successful compilation of other MIB modules that expect clean standard versions.

The built-in MIB modules of SNMP4J-SMI and SNMP4J-SMI-PRO are:

SMIv1SMIv2
RFC1155-SMISNMPv2-SMI
RFC-1212SNMPv2-CONF
RFC-1215SNMPv2-TC

 

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues