Scenario A:
A Data Collector (DC) host is being decommissioned. The server where the DC was installed was removed and deprecated or deleted and is no longer available. This was done before ensuring all managed devices associated to the DC were moved to other DCs or deleted. The DC shows in the Portal UI as a greyed out DC entry that is not selectable but does show more than zero polled devices. How can we identify the devices that remain associated to the DC in order to remove them?
Scenario B:
Unable to Discover a Device in DX NetOps PM After the Data Collector to Which the Device Was Assigned Was Deleted Through Data Aggregator REST API. We are encountering an issue where a device cannot be discovered or monitored in DX NetOps Performance Management (PM) because its assigned Data Collector was deleted using the REST API. As a result, the device remains in an undefined state, preventing proper discovery and monitoring.
Scenario:
Suppose device X is being monitored by Data Collector Y. Due to infrastructure changes, the network administrator decides to delete Data Collector Y via the Data Aggregator REST API:
As a result, device X moves into an undefined state because its associated Data Collector no longer exists. Within the Data Aggregator device admin page, the administrator is unable to assign a new Data Collector to rediscover the device because the dropdown menu is greyed out.
DX NetOps Performance Management All releases
The issue arises when one of these scenarios are taking place.
To determine the devices that remain on a greyed out "ghost" DC follow these steps. Once the devices are known we delete them and rediscover them on existing DCs. We can also move them from one DC to another.
Once the devices are identified they need to be removed from association to the old DC.
for itemid in `cat /tmp/devices.txt`
do
curl -X PUT -u <USER>:<PASSWORD> -H 'Content-Type: application/xml' -d'<Device version="1.0.0"><Item version="1.0.0"><MDRItemID>NEW_COLLECTOR_ID</MDRItemID></Item></Device>' <SCHEME>://<DA_NAME>:<PORT>/rest/devices/$itemid
doneNote: Deleting a Data Collector via the REST API, or removing it's host from the environment without proper uninstall steps being followed, can leave devices in an undefined state. It is not recommended to delete a Data Collector if it is currently monitoring devices. Move existing devices to another DC or delete them prior to taking these steps on an active DC.