Delete discovery_agents and eliminate them from being displayed in OC setup wizard
search cancel

Delete discovery_agents and eliminate them from being displayed in OC setup wizard

book

Article ID: 33922

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

The discovery_agent probe has been deployed by mistake to a few robots. How can I remove unwanted discovery_agents from the Operator Console so they do not show as a node under Inventory and are not available in the Discovery Setup Wizard?

Environment

  • UIM 8.x or above

Cause

  • Leftover discovery_agents which are no longer used

Resolution

After deleting the discovery_agent probe from the unwanted robots it will need to be removed from the database with the following commands:

1. Find the discovery_agent "da_id" you wish to remove by running the following

select * from CM_DISCOVERY_AGENT

2. To remove, use the following query to execute a stored procedure, entering the da_id at the end of the query.

MSSQL example:
exec P_CM_REMOVE_DISCOVERY_AGENT @da_id = <da_id from previous query>

MySQL example:
call P_CM_REMOVE_DISCOVERY_AGENT(da_id from previous query) 

Note: this will remove the scopes associated with that discovery_agent.

Simply refresh the Operator Console and the unwanted discovery_agents should now be gone.

 

Additional Information

1. On the hub-robot, stop the Nimsoft Robot Watcher service.

2. Login to the system, and delete the niscache, or if you cant login, choose that controller probe in IM for and using "Expert Mode" run the callback nis_cache_clean and choose the full NimBUS robot address to delete the robot's niscache.

3. If you logged in locally, start the robot. If you used the callback, that should be sufficient.

   Run-> exec P_CM_REMOVE_DISCOVERY_AGENT @da_id = <da_id from previous SELECT query>

Run this query and check the results:

   Run-> SELECT * FROM CM_DISCOVERY_AGENT

There should not be any further discovery_agent duplicates for that particular hub-robot.