How to update a single metric family using a REST client for a device.
All supported DX Netops Performance Management releases.
To update a metric family:
URL: http://[HOST]:[PORT]/genericWS/devices/{DEV_ID}/metricfamilies/{MFID}/discovery
Adjust the port and protocol accordingly.
REST METHOD: POST
Content Type: application/xml
BODY: <emptybody/>
Example URL to update the Interface metric family on the DA device with a DA item ID of 123:
http://hostname:8581/genericWS/devices/123/metricfamilies/NormalizedPortInfo/discover
1) NormalizedPortInfo is the Internal Name of the Interface metric family.
2) 123 is the Item ID from the Data Aggregator device admin page
Via CURL:
curl -H 'Content-Type: application/xml' -d '<emptybody/>' -X POST http://<DA_HOST>:8581/genericWS/devices/<DEVICEID>/metricfamilies/<MF_NAME>/discovery
Example for above run via CURL:
curl -H 'Content-Type: application/xml' -d '<emptybody/>' -X POST http://<DA_HOST>:8581/genericWS/devices/123/metricfamilies/NormalizedPortInfo/discovery