3.5 RemoveMIBs

Use this Knowledge Script to remove one or more MIB files from an SNMP proxy agent computer. The specified files are deleted from the installation folder, which by default is installationfolder\AppManager\bin\AMSnmpMIBs.

Run this script when no other SNMP Knowledge Scripts are active on the target AppManager SNMP Toolkit installation because reloading the MIB tree can only be done when no SNMP sessions are active. If the RemoveMIBs Knowledge Script is unable to reload the MIB tree because of active SNMP sessions, the script can raise an appropriate event.

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

SNMP MIBs tend to be hierarchical. That is, one MIB is often dependent on another, from which it imports more generic data definitions. Therefore, delete a MIB only if it has no other dependent MIBs installed.

3.5.1 Resource Object

SNMP Proxy Agent computer

3.5.2 Default Schedule

By default, this script runs once.

3.5.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

List of MIB files to uninstall

Supply a list of MIB filenames to be deleted.

Reload MIB tree?

Set to Yes to reload the MIB tree after MIB files have been deleted. A MIB tree reload is only be attempted if all MIB files are deleted 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 Knowledge Scripts have active SNMP sessions. The default is 10 seconds.

Event Notification

Raise event if uninstallation of MIBs succeeds?

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

Event severity when uninstallation of MIBs succeeds

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

Raise event if uninstallation of MIBs fails?

Set to Yes to raise an event if any MIB files fail to delete. This can occur if any specified MIB filenames correspond to files not currently installed.

Event severity when uninstallation of MIBs fails

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

Raise event if reloading of MIB tree succeeds?

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

Event severity when reloading of MIB tree succeeds

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

Raise event if reload MIB parser warnings received?

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

Event severity when reload MIB parser warnings received

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

Raise event if reloading of MIB tree fails?

Set to Yes to raise an event if all MIB files uninstall successfully but reloading the MIB tree fails. This can occur if the Reload MIB tree? parameter is set to Yes and the MIB Reload timeout expires.

Event severity when attempt to reload MIB tree fails

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