DX NetOps

 View Only
  • 1.  PM20.2 - export discovery report to csv

    Posted Jun 28, 2021 09:12 AM
    Hello, is there a good way to export a discovery of devices to csv?  For example I am working with a client to onboard their devices and they would like to know which new devices got added on last nights discovery.  I know setting up rules will automatically populate groups but I am not there yet and the rules for their devices, which have IP's all over the place, are not obvious to create.

    When I look at the report from yesterday's discovery the table shows new managed devices but there is no clean way to export that to csv.  Even a crude copy paste does not format the output in a good way.

    What am I missing?


  • 2.  RE: PM20.2 - export discovery report to csv

    Posted Jun 28, 2021 11:19 AM
    Hi Al,

    Discovery results are available via Data Aggregator REST API: http://192.168.56.103:8581/rest/discoveryinstances will return results of all discoveries in XML. One of the return values will include a list of newly discovered devices (<NewlyCreatedManageableDevices>5115</NewlyCreatedManageableDevices>) with the discovered device id. Use http://192.168.56.103:8581/rest/devices/5115 to get device information. The discovery instance results can be reduced to specific instances http://192.168.56.103:8581/rest/discoveryinstances/3937

    I found https://data.page/xml/csv to convert from XML to CSV.

    Hth,
    Steve



  • 3.  RE: PM20.2 - export discovery report to csv

    Posted Jun 28, 2021 01:21 PM
    This is great Steve, thanks.  I really need to take the time to explore the rest api.

    cheers


  • 4.  RE: PM20.2 - export discovery report to csv

    Broadcom Employee
    Posted Dec 02, 2021 11:03 AM
    FYI - 21.2.6 will have CSV export button on the discovery profile history page.