Device list showing down devices through REST

book

Article ID: 129643

calendar_today

Updated On:

Products

CA Infrastructure Management CA Infrastructure Management CA Performance Management - Usage and Administration CA Performance Management - Data Polling

Issue/Introduction



How can I get a list of "Down" devices through REST?

Environment

CAPM 3.x

Resolution

For "Down" devices do a "POST" against the following URL: 

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

Where the "Body" has the following syntax

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

Additional Information

Sometimes copy / paste can cause syntax errors in a REST client.  If syntax errors are received type out the following syntax and it should work