Delete discovery_agent from the list and eliminate incorrect entries from being displayed in OC setup/discovery wizard
search cancel

Delete discovery_agent from the list and eliminate incorrect entries from being displayed in OC setup/discovery 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

  • In the Setup Wizard in Operator Console I see several discovery agents which are not correct.

  • In some cases the discovery_agent might have been deployed by mistake to a robot.

  • In other cases it might be related to a hub which no longer exists.

  • In some cases there could be erroneous entries that do not correspond to an actual discovery_agent or hub and it is not clear how they got there.

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

  • DX UIM - All Versions

Cause

  • Leftover discovery_agents which are no longer used

Resolution

First, if the discovery_agent has been mistakenly deployed to a hub or robot, you should delete the probe using Infrastructure Manager or Admin Console.

After deleting the probe, follow these steps:

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.

 

After deleting the discovery_agent probe from the unwanted robots (or in the case where it was an erroneous or leftover entry to begin with) it will need to be removed from the database with the following queries:

1. Find the discovery_agent "da_id" you wish to remove by running the following query to list the current agents:

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) 
 
Oracle example:
EXECUTE 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 be gone.