How to query devices placed into a "not polled" status
search cancel

How to query devices placed into a "not polled" status

book

Article ID: 196977

calendar_today

Updated On:

Products

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

Issue/Introduction

I need to have a list of devices that are in a "Not Monitored" state or in maintenance mode.  This will give us a list of devices that are not being polled

Environment

Dx NetOps Performance Management any version

Resolution

Do a "POST" against the following URL:

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

For NOT MONITORED, the "Body" must have the following syntax:


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

<Item use="exclude">
<Name use="include"/>
<CreateTime use="include"/>
</Item>

<Device use="exclude">
<PrimaryIPAddress use="include"/>
<CalculatedContactStatus use="include"/>
<UniqueID use="include"/>
</Device>

</Select>

</FilterSelect>