search cancel

List devices owned by a removed Data Collector

book

Article ID: 242653

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

We shutdown one Data Collector, but did not migrate devices to another DC first.

  How do we use a REST query to identify all devices which were owned by that Data Collector?

 

 

Environment

Release : 21.2

Component :

Cause

DC was deleted

Resolution

1. find a device that you know was owned by the data collector that was removed

      http://<DA>:8581/rest/devices/ItemID

 

2. Find the ID for <MDRItemID>5261</MDRItemID>

 

3. Use a REST client to POST a filtered view of devices that were owned by data collector with the ID from step 2.

 

POST to http://<DA>:8581/rest/devices/filtered

<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
  <Filter>
    <Item.MDRItemID type="EQUAL">5261</Item.MDRItemID>
  </Filter>
  <Select use="exclude" isa="exclude">
    <Device use="exclude">
      <PrimaryIPAddress use="include"/>
    </Device>
    <Item use="include"/>
  </Select>
</FilterSelect>