Parsing MIBs

 

MibBrowser enables you to parse the given MIB file and check for the macro constructs. It allows different levels of parsing and the parsing is done as per the standard definition of the macros.

 

The parsing levels can be set in the MibBrowser Settings dialog box. The following table describes the different levels of parsing that can be set and their corresponding checks.

 

S. No

Level of Parsing Checks Description

1

Lenient

No Default checksChecks

This level accepts all types of MIB files. For example, it allows both SMIv1 and v2.

2

Normal

 

This level is the default level conforming to the obsolete standards, such as RFC 1902, RFC 1903, etc. Most MIBs follow the obsolete standard.

3

Serious

Most checks throw exceptions on first misbehavior.

This level strictly follows the current standard. It accepts the constructs with interoperability and implementation problems.

4

Critical

All possible checks throw exceptions on first misbehavior

This level completely follows the SMIv1 and v2 standards. However, it does not accept the backward compatibility constructs, constructs with interoperability and implementation problems, etc.

 

Applications, while loading MIB files, perform the following operations.

While performing the parsing and validation of the MIB files, if the MIB modules fail to conform to the SMI standards, the loading will not be not done. However, the application requirements might mandate the loading of the non-standard files. On the other hand, some applications might require a stricter check on the compliance to the standards.

 

The parsing and validating the syntax of the MIB file can be made configurable to suit the application requirements. MibBrowser handles this by providing parsing levels which facilitate to select the level of parsing required by the applications.

 

In addition to the above four parsing levels, MibBrowser supports another level, which is user-defined. In case of user-defined level, you can define your own parsing level with the required checks at run time.

 

Note: It is recommended to use the higher parsing level (SERIOUS, CRITICAL) for validating the MIB file and not for loading the MIB file in the application. It affects the performance of the application while loading the MIB files, because it takes considerable amount of time and resources, such as memory, CPU usage, etc.

 

User-Defined Parsing Level

 

In addition to the four parsing levels, you also have another level, which is user-defined to define your own parsing levels at run time. To add a user-defined parsing level, select the User-Defined option and click the Add button in the User-Defined Levels section. This displays the Customized Level dialog box. Double-click the Levels folder to display a list of all the checks as shown below.

 

 

By default, all the checks are included. Provide a name for the level in the Level Name text field. To add or remove checks from the level, select or deselect the checks and click OK. Note that if you select (or deselect) a parent check, all its child checks are also selected (or deselected). Click OK to add this level to the user-defined level list.

 

The level of the parser has to be set in the MibParser before loading a MIB. This level, once set, is used for subsequent MIBs loaded. If the level needs to be modified for the next set of MIBs loaded, it has to be set again in the MIB Parser. In the Mib Settings tab of the MibBrowser Settings dialog box, select the required Parsing level, and click Apply.

 

The MIB file can contain one or more MIB modules. MibBrowser loads all the dependency files to resolve the MIB module. If the dependency file is not present, the IMPORTS failed error is thrown.

 

The parsing level can be set for the dependency file by selecting the Import File option and choosing Parsing Levels.



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.