Remove Old Data Collector from Portal Data Collector list
search cancel

Remove Old Data Collector from Portal Data Collector list

book

Article ID: 192086

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Migrated CAPM servers to new hardware and moved all data.  In System Health there is reference to previous Data Collector server.  How to remove the previous Data Collector that no longer exists from CAPC view?

How to remove a ghost Data Collector

During environment migration a mistake was made migrating the Data Collector. The new destination system shows the old Data Collector and the new Data Collector on the Data Collector Status page. The old one is all red for Status and shows the devices and items associated to it. The new Data Collector is shown as Green and Active but has no items.

Environment

All supported DX NetOps Performance Management releases

Cause

In some instances this is caused when the update_da_dc_database_references.sh script is run without the correct source DC name used.

Resolution

Are both DCs in a Green Normal state? If yes the first step, if required is to move devices from the old source DC to the new destination DC. Note that this is only possible when both DCs are in a Green Normal state.

  1. To remove the old DC from the list first determine it's ID. Go to:
    1. Browser tab: DA_Host:8581/rest/dcms
    2. CLI: Use this curl statement:
      • curl -v -u "admin:admin" -X GET -H 'Content-Type: application/xml' http://DA_Host:8581/rest/dcms
      • Default Portal web UI admin user and password shown. Replace with yours if non-default.
    3. Replace DA_Host with your DA hostname or IP address.
    4. Note the ID for the DC you want to remove. Be careful to select the correct one.
  2. Use this to delete the DC.
    1. Not possible via browser tab.
    2. REST API? Issue a DELETE to:
      1. URL: DA_Host:8581/rest/ipdomainmember/ID
      2. Replace ID with the number from above.
    3. CLI? Use this curl statement:
      1. curl -v -u "admin:admin" -X DELETE -H 'Content-Type: application/xml' http://DA:8581/rest/ipdomainmember/ID 
      2. Default Portal web UI admin user and password shown. Replace with yours if non-default.
      3. Replace DA_Host with your DA hostname or IP address.
  3. Check the Data Collector Status page in the Portal web UI to confirm the DC is now removed.