cisco Model-Driven Telemetry — Retrieving Subscription Details

ID Type State Filter type ----------------------------------------------------- 2147483667 Dynamic Valid xpath 2147483668 Dynamic Valid xpath 2147483669 Dynamic Valid xpath The following is sample output from the show telemetry ietf subscription subscription-ID detail command: Device# show telemetry ietf subscription 2147483667 detail Telemetry subscription detail: Subscription ID: 2147483667 State: Valid Stream: yang-push Encoding: encode-xml Filter: Filter type: xpath XPath: /mdt-oper:mdt-oper-data/mdt-subscriptions Update policy: Update Trigger: periodic Period: 1000 Notes: The following is sample output from the show telemetry ietf subscription all detail command:

Device# show telemetry ietf subscription all detail Telemetry subscription detail: Subscription ID: 101 Type: Configured State: Valid Stream: yang-push Encoding: encode-kvgpb Filter: Filter type: xpath XPath: /iosxe-oper:ios-oper-db/hwidb-table Update policy: Update Trigger: on-change Synch on start: Yes Dampening period: 0 Notes: The following sample RPC shows how to retrieve subscription details uisng RESTCONF: Subscription details can also be retrieved through a RESTCONF GET request to the Cisco-IOS-XE-mdt-oper database: URI: https://10.85.116.28:443/restconf/data/Cisco-IOS-XE-mdt-oper: mdt-oper-data/mdt-subscriptions Headers:

application/yang-data.collection+json, application/yang-data+json, application/yang-data.errors+json Content-Type: application/yang-data+json Returned output: { "Cisco-IOS-XE-mdt-oper:mdt-subscriptions": [ { "subscription-id": 101, Model-Driven Telemetry Retrieving Subscription Details Model-Driven Telemetry 47