search cancel

How can I update a single metric family using a REST client for a device?

book

Article ID: 137059

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

How to update a single metric family using a REST client for a device.

Environment

All supported DX Netops Performance Management releases.

Resolution

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





 

Additional Information

Device Rediscovery via REST