DX NetOps Manager

Expand all | Collapse all

Get a list of all devices on a single Data Collector

Jump to Best Answer
  • 1.  Get a list of all devices on a single Data Collector

    Posted 02-15-2019 09:37 AM

    Hi Community, 

     

    does someone have an idea on how to get a list of all devices that exist on a single data collector server? Especially if there are multiple DCs within the given IP Domain.

    Unfortunately the list in the DC Admin page is not exportable (at least in the used release). But as it's there, there needs to be a way to get this list. 

     

    I tried the OpenAPI builder, but i think i would need something like for

    devices with DataCollectionMgrId=SomeNumber select *

     

    But the DataCollectionMgrId attribute is not available within the builder for devices. 

     

    Regards and have a nice weekend

     

    Marco



  • 2.  Re: Get a list of all devices on a single Data Collector

    Posted 02-15-2019 10:01 AM

    Hi Marco,

     

    The DCDebug page from the Data Aggregator might provide what you're looking for.

     

    Go to http://<DA_HOST>:8581/dcdebug

     

    On that page, select the "Display Polled Devices" option. Set the appropriate IP Domain. I believe it should list devices and IPs per DC for each Domain.

     

    Hope that helps.

     

    Thanks,

    Mike



  • 3.  Re: Get a list of all devices on a single Data Collector
    Best Answer

    Posted 02-15-2019 11:00 AM

    In addition to Mike's response you could also use 

     

     

    Free script to export the device list from Data Aggregator in a csv file 



  • 4.  Re: Get a list of all devices on a single Data Collector

    Posted 02-15-2019 11:55 AM

    Well, what you can do is

    1. get the DC ID from filtered get of all DCs (just limited on the tags needed )

    2. get the device list with filtered get on the DC ID of interest

     

    POST http://DAHOST:8581/rest/dcms/filtered

    body:

    <FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
    <Select use="exclude">
    <Item use="exclude">
    <Name use="include"/>
    </Item>
    </Select>
    </FilterSelect>

    might return 

    ...         <ID>665</ID>

     

    POST http://DAHOST:8581/rest/devices/filtered

    body:

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

     

    Hth

    Lutz.



  • 5.  Re: Get a list of all devices on a single Data Collector

    Posted 02-17-2019 07:39 AM

    Thank you all,

     

    i think with those suggestions i should get the job done. 

    I'll test tomorrow. 

     

    Cheers

    Marco