I'm able to check device info using:
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
(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))
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
Thanks Lutz, much appreciated. I will have a look at these examples.