Remove restmon schema and MCS template
search cancel

Remove restmon schema and MCS template

book

Article ID: 419860

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

How do I completely remove a restmon Schema and related MCS after being loaded? 

I want to clean up my restmon custom schemas and remove the MCS Templates created so they are no longer offered in the MCS. 

Procedure to delete restmon schema from DX UIM

Environment

DX UIM 23.4.*

Cause

Guiance

Resolution

There is no "out of the box" method to delete a restmon schema from DX UIM once it is loaded via the Restmon application within the OC and after it creates the Template in the DB for the use of MCS. 

However, the following steps can be used to clean-up DX UIM from a custom schema loaded and related MCS template: 

 

STEPS TO FOLLOW

 

1. Delete any MCS profiles created with the schema-template created that you want to remove. (Delete from OC MCS UI at group of device level)

2. Remove the MCS Template:

You have 2 options:

a) Disable the template . The template created will no longer be offered (safe strategy)

First locate the templateid that you want to delete: 

Example.

 select * from SSRV2Template where probe = 'restmon'

Take a note of templateid: (Example 743)

update SSRV2Template set production = '0' where templateid = 743

 

or

b) Delete the Template from the DB manually: (if you want to completely remove the template from MCS)

this procedure worked for me, please test first in a test environment: 

First locate the templateid that you want to delete: 

Example.

 select * from SSRV2Template where probe = 'restmon'

Take a note of templateid: (Example 743)

Then run this in order: 

DELETE from SSRV2PackageTemplate where template = '743'
DELETE from SSRV2Removal where template = '743'
DELETE from SSRV2Template where templateid = '743'

 

3. Delete the <custom_schema.json> file from:

C:\<UIM_install_path>\probes\service\wasp\webapps\operatorconsole_portlet\schemaUploadDir\administrator

4. Delete the <custom_schema.json> file from:

C:\<UIM_install_path>\probes\service\wasp\schemas

Additional Information

Techdocs: REST API Monitoring