Dynamic telemetry subscription indicates that a collector functioning as a client initiates a connection to a device functioning as a server to collect data.
If a collector functioning as a client initiates a connection to a device functioning as a server, the data sampled is dynamically subscribed to. In this case, you need to configure the source IP address and number for a port to be listened, and enable the gRPC service. The protocol used to send data is gRPC.
If the connection where dynamic telemetry subscription resides is interrupted, the device automatically cancels the subscription and stops data sampling and reporting. The configuration cannot be restored unless the collector sends a connection request again. For example, if a user wants to monitor an interface for a period of time, configure dynamic telemetry subscription. To stop monitoring, tear down the connection. The subscription is automatically canceled and cannot be restored. This avoids the long-term load on devices and simplifies the interaction between users and devices.
Before configuring dynamic telemetry subscription, complete the following tasks:
Configure a static route or dynamic routing protocol to ensure that devices can communicate at the network layer.
Create an ACL, if needed, for the gRPC service to control which clients can connect to the server. For details about how to create an ACL, see "ACL Configuration" in Configuration Guide > IP Services.
Create an SSL policy, if needed, for the gRPC service so that the server and client can establish a secure SSL connection. For details about how to create an SSL policy, see "Configuring and Binding an SSL Policy" in Configuration Guide > Basic Configuration.
The system view is displayed.
The gRPC view is displayed.
The gRPC server view is displayed.
A source IP address to be listened during dynamic telemetry subscription is configured.
A port to be listened during dynamic telemetry subscription is set.
An ACL is configured for the gRPC service during dynamic telemetry subscription.
An idle timeout period is configured of the gRPC service during dynamic telemetry subscription.
An SSL policy is configured for the gRPC service during dynamic telemetry subscription.
A server is enabled to perform SSL verification on a client during dynamic telemetry subscription.
A DSCP value is set for data packets to be sent.
The gRPC service is enabled.
Run quit
Return to the gRPC view.
Run quit
Return to the system view.
Run telemetry
The telemetry view is displayed.
Run cpu-usage max-percent usage
A maximum usage is configured for the main control board's CPU used when telemetry collects data.
This command is supported only on the Admin-VS.
The configuration is committed.
After the preceding configurations are performed and the collector delivers the data sampled, verify the configuration.
Run the display telemetry dynamic-subscription [ subName ] command to check the dynamic subscription information.