DX NetOps

 View Only

Expand all | Collapse all

How to consult the Status of the Data collector devices in Performance Management?

  • 1.  How to consult the Status of the Data collector devices in Performance Management?

    Posted Sep 23, 2024 03:52 PM
    Good morning community.
    
    I have a question: it is about performing a query where I can extract all the DC devices from an environment and have the "Status" Field since the information on these comes as UP or Down. Could you help me by sharing information for this execution.
    
    Greetings!


  • 2.  RE: How to consult the Status of the Data collector devices in Performance Management?

    Broadcom Employee
    Posted Sep 24, 2024 03:03 AM

    Hi Jose Carlos,

    you can use the Data Aggregator REST API to get information about the Data collectors

    http://da:8581/rest/dcms

    You can filter the returned information using the filtered endpoint and the corresponding "Select" payload

    http://da:8581/rest/dcms/filtered

    Example:

    curl -u admin:<password> -H "Content-Type: application/xml" http://da:8581/rest/dcms/filtered -d'<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
    <Select use="exclude" isa="exclude">
            <DataCollectionMgrInfo use="exclude">
                    <CollectorState use="include"/>
                    <HostName use="include"/>
            </DataCollectionMgrInfo>
            <DataCollectorPollingInfo use="exclude">
                    <Status use="include"/>
            </DataCollectorPollingInfo>
    </Select>
    </FilterSelect>'

    Regards




  • 3.  RE: How to consult the Status of the Data collector devices in Performance Management?

    Posted Sep 24, 2024 06:33 PM
    Hello Vincent
     
    Maybe I haven't understood it, but what I'm looking for is to extract an inventory where the hostname, IP, and Status come from. Just as the image appears.
     
    For example, this value I want obtain it in an export
     Thank you



  • 4.  RE: How to consult the Status of the Data collector devices in Performance Management?

    Broadcom Employee
    Posted Sep 25, 2024 04:04 AM

    Hi Jose Carlos,

    You can get that information using the devices endpoint in the REST API.

    curl -u <user>:<pass> -H "Content-Type: application/xml" http://da:8581/rest/devices/filtered -d'<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
            <Select use="exclude" isa="exclude">
                    <Device use="exclude">
                            <ContactStatus use="include"/>
                            <PrimaryIPAddress use="include"/>
                    </Device>
                    <Item use="exclude">
                            <Name use="include"/>
                    </Item>
            </Select>
    </FilterSelect>'

    Regards