3.2 AddMIBs

Use this Knowledge Script to install additional MIB files on an SNMP proxy agent computer. The specified files are copied to a default MIBs folder for the AppManager SNMP Toolkit module, and the module reloads the MIB tree so the new MIBs take effect.

This script copies files to and reloads both AppManager/bin/AMSnmpMIBs and AppManager/bin/MIBs directories. Both managed objects generate events for this script, and the short event messages include the name of the relevant managed object.

Run this script when no other SNMP scripts are active on the target proxy agent computer, because reloading the MIB tree can take place only when no SNMP sessions are active. If this script is unable to reload the MIB tree because of active SNMP sessions, an appropriate event can be raised. If no path or MIB files are supplied, by default this script creates an event containing a list of currently installed MIBs.

This script raises an event if the specified MIB files cannot be found, or an ASN.1 compilation error occurs while reloading the MIB tree.

SNMP MIBs tend to be organized hierarchically. One MIB is often dependent on another, from which it imports more generic data definitions. Therefore, add a MIB only if all dependent MIBs are already present or are supplied in the same execution of this script.

3.2.1 Resource Object

SNMP Proxy Agent computer

3.2.2 Default Schedule

By default, this script runs once.

3.2.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Full MIB file path

Specify the directory path where the MIB files to be installed are located.

This script does not transfer the specified MIB files over the network. The directory path specified for the MIB files must already be locally accessible by the SNMP proxy agent computer.

List of MIB files

Supply a list of filenames for the MIBs you want to install. Do not include the directory path.

Reload MIB tree?

Set to Yes to reload the MIB tree after MIB files have been copied. A MIB tree reload is attempted only if all MIB files are installed successfully.

MIB reload timeout

Specify how long this script should wait to try and reload the MIB tree. This can only be performed if no other script has active SNMP sessions. The default is 10 seconds.

Event Notification

Raise event if installation of MIBs succeeds?

Set to Yes to raise an event if all MIBs are installed successfully. The details of the event contain the list of installed MIB files.

Event severity when installation of MIBs succeeds

Set the event severity level, from 1 to 40, to indicate the importance of an event in which MIB installation succeeds. The default is 25.

Raise event if installation of MIBs fails?

Set to Yes to raise an event if any MIB files fail to install. This can occur if the path of MIB filenames specified is incorrect.

Event severity when installation of MIBs fails

Set the event severity level, from 1 to 40, to indicate the importance of an event in which MIB installation fails. The default is 10.

Raise event if reloading of MIB tree succeeds?

Set to Yes to raise an event if all MIB files install successfully and the MIB tree is reloaded successfully. This can only occur if the Reload MIB tree? parameter is enabled.

Event severity when reloading of MIB tree succeeds

Set the event severity level, from 1 to 40, to indicate the importance of an event in which MIB tree reloading is successful. The default is 25.

Raise event if reload MIB parser warnings received?

Set to Yes to raise an event if all MIB files install successfully and reloading the MIB tree reports ASN.1 parsing errors. This can only occur if the Reload MIB tree? parameter is enabled. Details of the parsing errors are in the event.

Event severity when reload MIB parser warnings received

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the MIB reload generates warnings. The default is 15.

Raise event if reloading of MIB tree fails?

Set to Yes to raise an event if all MIB files install successfully and reloading the MIB tree fails. This can occur if Reload MIB tree? is enabled and the MIB reload timeout expires.

Event severity when reloading of MIB tree fails

Set the event severity level, from 1 to 40, to indicate the importance of an event in which MIB tree reload fails. The default is 10.