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

Document ID:  TEC1706936
Last Modified Date:  09/11/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Spectrum

Releases

  • CA Spectrum:Release:10.2
  • CA Spectrum:Release:10.1
  • CA Spectrum:Release:10.0

Components

  • CERTIFICATION:SPCCRT
Summary:

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.

Instructions:

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

787532_1.png

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 screen shot 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 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:

Reference the Managing MIBs and Traps With MIB Tools section of the documentation for more information on using MIB Tools.

Reference the db_remove section of the documentation for more information on using the db_remove command.

Reference the Command Line Interface section of the documentation for more information on using the Command Line Interface.

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >