How to remove a mib that has been compiled and added using Spectrum MIB Tools.
search cancel

How to remove a mib that has been compiled and added using Spectrum MIB Tools.

book

Article ID: 10345

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

This document explains how to remove a mib from the MIB Tools and SpectroSERVER databases after it has been compiled and added to the MIB Tools and Spectrum databases.

Environment

Release: Any
Component: Applications / MIB Tools

Resolution

To remove a mib from the MIB Tools database:

1. Log into Spectrum OneClick as a user that has privilege in MIB Tools to add and delete mibs

2. Launch MIB Tools by selecting Tools -> Utilities -> MIB Tools from the top level menu

3. In the Navigation panel, find and select the mib to be removed

4. Click on the Delete icon

NOTE: You cannot delete a mib if it is an out of the box mib or if the mib you imported updates an out of the box mib. You can only delete mibs you import that are new to the MIB Tools database.

 

To remove a mib from the Spectrum database that was mapped from a mib imported using MIB Tools:

1. Log into the SpectroSERVER system as the user that owns the Spectrum installation

2. If on Windows, start a bash shell by running "bash -login"

3. cd to the $SPECROOT/vnmsh directory

4. Enter the following command to start a Command Line Interface (CLI) session:

./connect

5. Enter the following command to find the model type handle of the model type created when the file was compiled in MIB Tools and
      mapped to the SpectroSERVER database. In the following example, the model type created was the VELOCITY-MIB seen in the
      screenshot above:

$ ./show types | grep VELOCITY-MIB

0xfff00001  VELOCITY-MIB 


6. In the above output, the first column of data is the model type handle. In this example, the model type handle is 0xfff00001

7. cd to the $SPECROOT/SS directory

8. Create a file in the $SPECROOT/SS directory. The file name can be any file name (no spaces). The contents will be the model type handle from step 5 above to be removed from the Spectrum database

9. Shutdown the SpectroSERVER process

10. Run the following command from the $SPECROOT/SS directory where <FILE> is the name of the file created in step 8 above

../SS-Tools/db_remove <FILE>


11. The following is an example of the command and the output:


$ ../SS-Tools/db_remove MTH_File.txt

Loading the database.  Please be patient...

Processing the model type handle : 0xfff00001

Processing the model type handle :

Successfully made changes permanent.



12. Start the SpectroSERVER process

13. Repeat steps 3-5 above to ensure the model type has been removed

Additional Information

References:


Managing MIBs and Traps With MIB Tools
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-3/managing-network/certifications/managing-mibs-and-traps-with-mib-tools.html


dbtool - for more information on using the db_remove command.
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-3/administrating/database-management/spectroserver-database-maintenance/ca-spectrum-database-tools/dbtool.html


Command Line Interface
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-3/managing-client-applications/command-line-interface.html

Attachments

1558693088356000010345_sktwi1f5rjvs16h6g.png get_app