cisco Model-Driven Telemetry — Creating Configured Subscriptions

Configured Subscription Management This section describes how to create, modifiy, and delete configured subscriptions. Creating Configured Subscriptions Configured subscriptions are created by management operations on the publisher by controllers, and explicitly include the specification of the receiver of the telemetry data defined by a subscription. These subscriptions persist across reboots of the publisher. Configured subscriptions can be configured with multiple receivers, however; only the first valid receiver is used. Connection to other receivers is not attempted, if a receiver is already connected, or is in the process of being connected.

If that receiver is deleted, another receiver is connected. Configured dial-out subscriptions are configured on the device by the following methods: • Using configuration CLIs to change to device configuration through console/VTY. • Using NETCONF/RESTCONF to configure the desired subscription. In Cisco IOS XE Dublin 17.11.1, the enum values, sub-upd-trig-on-change was replaced by sub-upd-trig-on-change-v2 , and no-synch-on-start was replaced by no-synch-on-start-v2 , for the dampening period to work. This section displays sample RPCs to create configured subscriptions.

Periodic Subscription The following example shows how to configure gRPC as the transport protocol for configured subscriptions using the CLI: telemetry ietf subscription 101 encoding encode-kvgpb filter xpath /memory-ios-xe-oper:memory-statistics/memory-statistic stream yang-push update-policy periodic 6000 source-vrf Mgmt-intf receiver ip address 10.28.35.45 57555 protocol grpc-tcp The following sample RPC shows how to create a periodic subscription using NETCONF that sends telemetry updates to the receiver every 60 seconds:

message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-mdt-cfg"> 200 yang-push encode-kvgpb 6000 /memory-ios-xe-oper:memory-statistics/memory-statistic 10.22.23.48 57555 grpc-tcp Model-Driven Telemetry Configured Subscription Management Model-Driven Telemetry 17