How to gather a list of Data Aggregator devices with a specific status?

Document ID : KB000016477
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How to gather a list of Data Aggregator devices with a specific status?

Answer:

 

This will require a REST client (browser based or client installation)

 

1. Enter the URL: http://<DA-HOST>:8581/rest/devices/filtered

 

2.Select method: POST

 

3.Enter header:  Content-Type = application/xml

 

4.Paste the following XML for the Body:

 

 

<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">

 

<Filter>

 

<And>

 

<Device.CalculatedContactStatus type="EQUAL">DOWN</Device.CalculatedContactStatus>

 

</And>

 

</Filter>

 

<Select use="exclude">

 

  <Item use="exclude">

 

     <Name use="include"/>

 

  </Item>

 

  <Device use="exclude">

 

   <PrimaryIPAddress use="include"/>

 

  </Device>

 

</Select>

 

</FilterSelect>

 

 

5.Define the status value (DOWN, UP, UNKNOWN, MANAGEMENT_LOST)

 

6.Click Send

 

7.Verify the status

 

8. Review the results

Example:

 

DeviceList>

 

<Device version="1.0.0">

<ID>5559</ID>
<PrimaryIPAddress>138.42.187.166</PrimaryIPAddress>
<Item version="1.0.0">
<Name>lanke07m4600.ca.com</Name>
</Item>
</Device>

</DeviceList>