User guide

Loading and Unloading MIBs Loading MIBS as Compiled Files
AlliedView NMS Administration Guide (Built-in Browsers - SNMP MIB and CWMP)
11-4
The Recently Loaded MIBs lists all the MIBs that are loaded in the Mib Browser. You can select the MIBs that are listed here
and move it to the adjacent Updated List text area. The MIBs that are listed in the updated list text area can be loaded in the
Mib Browser by selecting the File -> Load All MIBS menu option.
11.3.3 Loading MIBS as Compiled Files
The Mib Browser allows loading of compiled MIB files. The compiled MIB files reduce loading time, leading to performance
improvement. To store the compiled file information, there are two file types used for storing the MIB information in a format-
ted structure:
.cmi - This file type contains MIB information like MibNode, MibModule, naming hierarchy, etc.
.cds - This file type contains the description and reference of the nodes in the Mib.
The compiled MIB files reduce the loading time, leading to performance improvement. The applications and the applets have
the option of loading the MIB files directly or as compiled MIB files. The Load MIBs from compiled File option is provided
in the dialog box to decide whether to load MIB from compiled MIBs or not. By default, this option is enabled. If this is
unchecked, the user can directly load the MIB file as provided.
When Load MIBs from compiled File is selected, the Mib Browser tries to load the .cmi and .cds files, if they are present.
Otherwise, this parses the MIB file and writes the output in .cmi and .cds files, and then loads the MIB file. For example, for
the RFC1213-MIB the compiled MIB files are RFC1213-MIB.cmi and RFC1213-MIB.cds. The advantage of using this option
is that the MIB need not be parsed each time it is loaded, which reduces the load time.
To load the compiled MIBs, load the .cmi file alone. The .cmi file will have reference to the .cds files. The mib_file_name.cds
file should not be loaded directly.
11.3.4 Loading MIBs from a Database
The Mib Browser allows loading MIB files from the database. The MIB files can be stored in any RDBMS such as MySql or
Oracle
1
. Applications can load these MIB files directly from the database. This feature is particularly useful for a high number
of MIB files.
The Mib Browser uses JDBC (Java Database Connectivity) for the database support. Applications should use a valid class 3
JDBC driver of the respective databases to enable the database support.
To add database support for loading the MIBs, applications should initialize the necessary database parameters first. The fol-
lowing details have to be given in the settings dialog:
DriverName - Name of the DataBase driver.
URL - URL pointing to the DataBase filename.
userName - userName.
passWord - password.
When the Load MIBs From Database is enabled in the load options dialog box, the Mib Browser tries to load the MIB file
from the database. If the MIB files are already present in the database, the result will be successful. If the MIB files are not
present in the database but are available only in the local path in which the application is executed, the MIB files are loaded in
the database for the first time, and then loaded in the application.
A few MIB modules are provided in the MIBS directory, i.e. RFC1213-MIB, RFC1271-RMON, RFC1155-SMI, RMON2-
MIB, TOKEN-RING-RMON-MIB and RFC1315-FRAME. It may be convenient to copy your MIB module files to be loaded
into the mibs directory.
11.3.5 Loading MIBs Using MySQL
The following database parameters have to be configured in the application:
1. Registered Trademark ® 2003 Oracle Corporation. All rights reserved.