DX NetOps

 View Only
  • 1.  Change DC Host for Bulk devices

    Posted Aug 04, 2021 10:38 AM
    Hi All,

     How to the Data collector IP address for devices in bulk using API. In case one Dc fails we need to move the monitored devices to other ones


  • 2.  RE: Change DC Host for Bulk devices

    Broadcom Employee
    Posted Aug 05, 2021 01:54 PM
    Hi,

    If you need to move devices from a DC to another DC in case one DC fails you can use the procedure listed on PM Guide "Update the Data Collector"
    https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/performance-management/21-2/administrating/data-aggregator-administration/update-the-data-collector.html




  • 3.  RE: Change DC Host for Bulk devices

    Broadcom Employee
    Posted Aug 05, 2021 05:44 PM
    Edited by Jeffrey Pinard Aug 05, 2021 05:48 PM

    You would need to have a list of the device item_ids that are on a DC that is down... then use those IDs to call and change MDRItemID (DC's itemid the device is polling on).

    You could do a filtered GET via REST to get IDs of devices POST http://DA:8581/rest/devices/filtered and body:

    <FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
    <Filter><Item.MDRItemID type="EQUAL">down-dc-itemid</Item.MDRItemID></Filter>
    <Select use="exclude" isa="exclude"/>
    </FilterSelect>

    With that result, which is a bunch of IDs, you'd have to parse and cycle the IDs and call for each device ID:
    PUT http://DA:8581/rest/devices/<item-id> and body:

    <Item version="1.0.0"><MDRItemID>new-dc-item-id</MDRItemID></Item>