DX NetOps

 View Only
  • 1.  Reachability and Contact Status via REST call

    Posted Jan 08, 2019 05:21 AM

    Hi All,

     

    I'm able to check device info using:

     

    http://capc:8181/pc/center/webservice/devices/deviceItemId/<ID>

     

    Device Availability and Reachability - CA Performance Management - 3.1 - CA Technologies Documentation 

     

    but this doesn't show reachability and contact status (only lifeCycleStatus). Is it possible to get these 2 metrics for a device?

    These are the 2 metrics showing in the device info dashboard

     

    Many Thanks,

    Frank



  • 2.  Re: Reachability and Contact Status via REST call

    Broadcom Employee
    Posted Jan 08, 2019 06:57 AM

    Hi Frank,

    (Calculated)ContactStatus is a device attribute on the Data Aggregator, and can be retrieved from http://DA:8581/rest/devices/Device_ITEMID_DA. 

     

    For reachability, you may consider an openAPI query that retrieves the avg reachability for the last hour, such as

    http://DA:8581/odata/api/devices?$apply=groupby(reachabilitymfs/ID, aggregate(reachabilitymfs(im_Reachability with average as Value)))&&resolution=RATE&period=1h&$select=ID,Name&$filter=((ID eq 6194))   

     

    Hth,

    Lutz.



  • 3.  Re: Reachability and Contact Status via REST call
    Best Answer

    Broadcom Employee
    Posted Jan 08, 2019 08:34 AM

    FYI we have a sample app "Get DA Status" in the DA Utilities package on GitHub - CA-PM/DA-Utility-Apps: sample apps to quickly review DA device parameters, edit custom attributes and set SNMP …  

    which does something similar



  • 4.  Re: Reachability and Contact Status via REST call

    Posted Jan 08, 2019 10:52 AM

    Thanks Lutz, much appreciated. I will have a look at these examples.

     

    Regards,

     

    Frank