How to list devices by Data Collector
search cancel

How to list devices by Data Collector

book

Article ID: 188393

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

How to list devices by Data Collector

Environment

Release : 3.7

Component : IM Reporting / Admin / Configuration

Resolution

1. http://daHostname:8581/rest/dcms - NOTE ID'S (MDRItemID)

2. Issue a REST call with a REST client with the following configuration:

Method: POST
Content-Type: application/xml
URL: http://daHostname:8581/rest/devices/filtered

Body:

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