User guide

Built-in Browsers - SNMP MIB and CWMP Loading and Unloading MIBs
958
AlliedView NMS Administration Guide
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
following 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:
driver name - org.gjt.mm.mysql.Driver
url - JDBC: mysql://< machine name > / < database name >
username - < a valid user name >
password - < password for the above user >
The jar file mysql_comp.jar has to be included in the classpath. If the jar is not in the classpath, the following exception is
thrown:
Input: Java.lang.ClassNotFoundException:org.gjt.mm.mysql.Driver
For other databases, please use the equivalent parameters.
1. Registered Trademark ® 2003 Oracle Corporation. All rights reserved.