A network engineer is configuring model-driven telemetry on a Cisco IOS-XE router to stream interface statistics to a collector using gRPC. The engineer wants to ensure that the telemetry data is sent only when there is a change in the interface counters, rather than at a fixed interval. Which configuration parameter should the engineer use to achieve this behavior?
Trap 1: Use a periodic subscription with a sample-interval of 0
A sample-interval of 0 is invalid; periodic subscriptions require a positive integer for the interval.
Trap 2: Set the suppress-repetition flag in a periodic subscription
The suppress-repetition flag reduces duplicate updates but still sends data at the periodic interval, not only on change.
Trap 3: Use a dynamic subscription with a sample-interval of 1 second
A dynamic subscription with a sample-interval sends data periodically, not only on change.
- A
Use a periodic subscription with a sample-interval of 0
Why wrong: A sample-interval of 0 is invalid; periodic subscriptions require a positive integer for the interval.
- B
Configure an on-change subscription
An on-change subscription sends updates only when the monitored data changes, which matches the requirement.
- C
Set the suppress-repetition flag in a periodic subscription
Why wrong: The suppress-repetition flag reduces duplicate updates but still sends data at the periodic interval, not only on change.
- D
Use a dynamic subscription with a sample-interval of 1 second
Why wrong: A dynamic subscription with a sample-interval sends data periodically, not only on change.