Comando Cisco telemetry / model-driven : Come Configurare Model-Driven Telemetry?

2 min di lettura
Pubblicato il 15 Novembre 2026
Avanzato monitoring

Comando Cisco telemetry / model-driven : Come Configurare Model-Driven Telemetry?

Il comando telemetry ietf subscription configura Model-Driven Telemetry (MDT) per streaming dati real-time a collector (Grafana, ELK) via gNMI/gRPC.

{ } Sintassi
telemetry / model-driven
! Configura MDT subscription
telemetry ietf subscription 10
encoding encode-kvgpb
filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds/five-seconds
source-address 192.168.1.1
stream yang-push
update-policy periodic 1000
receiver ip address 192.168.10.100 57000 protocol grpc-tcp

! Verifica
show telemetry ietf subscription all
show telemetry ietf subscription 10 detail
>_ Verifica - Output
Router - PuTTY
R1# show telemetry ietf subscription all Telemetry subscription briefID Type State Filter type ------------------------------------------------------- 10 Configured Valid xpathR1# show telemetry ietf subscription 10 detail Telemetry subscription detail:Subscription ID: 10 State: Valid Encoding: encode-kvgpb Filter: Filter type: xpath XPath: /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds/five-seconds Source QOS marking: 0 Source address: 192.168.1.1 Stream: yang-push Update policy: Type: periodic Period: 1000 Receiver: IP: 192.168.10.100 Port: 57000 Protocol: grpc-tcpR1# show telemetry ietf subscription 10 receiver Receiver connection state: Connected
! Errore Comune
⛔ XPath errato - subscription invalid

Se XPath non esiste o typo, subscription resta Invalid o NaN, nessun dato inviato a collector.

Fix: Usa XPath valido da YANG model: show telemetry ietf subscription all detail verifica Valid. Testa con pyang o yang-explorer. Collector deve supportare gNMI/gRPC.

✦ Trasparenza AI: uso strumenti AI per bozze, schemi e immagini. Ogni contenuto lo revisiono, testo i comandi in laboratorio e lo riscrivo con la mia esperienza in classe prima di pubblicarlo. La responsabilità di quello che leggi è mia.
Mario Giagnotti
AUTORE
Mario Giagnotti
Ingegnere Elettronico e docente di Informatica.