ā02-24-2025 06:30 AM
Hello Team,
Am trying to configure Cisco Telemetery but state showing invalid. The configuration is mentioned below:-
CiscoIOSXE54#show running-config | sec tele
telemetry ietf subscription 541
encoding encode-kvgpb
filter xpath /memory-ios-xe-oper:memory-statistics/memory-statistic
source-address 192.168.0.54
stream yang-push
update-policy periodic 500
receiver ip address 192.168.0.205 57000 protocol grpc-tcp
telemetry ietf subscription 542
encoding encode-kvgpb
filter xpath /platform-ios-xe-oper:components
source-address 192.168.0.54
stream yang-push
update-policy periodic 500
receiver ip address 192.168.0.205 57000 protocol grpc-tcp
telemetry ietf subscription 543
encoding encode-kvgpb
filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-minutes
source-address 192.168.0.56
stream yang-push
update-policy periodic 500
receiver ip address 192.168.0.205 57000 protocol grpc-tcp
telemetry ietf subscription 545
encoding encode-kvgpb
filter xpath /Cisco-ios-xe-oper:interface*:
source-address 192.168.0.54
stream yang-push
update-policy periodic 500
receiver ip address 192.168.0.205 57000 protocol grpc-tcp
telemetry ietf subscription 546
encoding encode-kvgpb
filter xpath /ospf/if-state-change
source-address 192.168.0.54
stream yang-push
update-policy periodic 500
receiver ip address 192.168.0.205 57000 protocol grpc-tcp
telemetry ietf subscription 548
encoding encode-kvgpb
filter xpath /ios-ospf/native/router/ios-ospf:ospf
source-address 192.168.0.54
stream yang-push
update-policy periodic 500
receiver ip address 192.168.0.205 57000 protocol grpc-tcp
CiscoIOSXE54#show telemetry ietf subscription all
Telemetry subscription brief
ID Type State Filter type
--------------------------------------------------------
541 Configured Valid xpath
542 Configured Valid xpath
543 Configured Valid xpath
545 Configured Invalid xpath
546 Configured Invalid xpath
548 Configured Invalid xpath
ā02-24-2025 06:47 AM
Not 100% on this, but looking at what you posted the *
and :
characters are not properly placed. XPath filters should be precise and follow the correct YANG model paths, for exmaple /Cisco-IOS-XE-interfaces-oper:interfaces/interface
ā02-25-2025 01:53 AM
Hi, the xpath format is /<prefix>:<xpath> (no "/" after ":").
So in your case:
filter xpath /Cisco-ios-xe-oper:interface*:
filter xpath /interfaces-ios-xe-oper:interfaces/interface
filter xpath /ospf/if-state-change
filter xpath /ospf-ios-xe-oper:ospf-oper-data/ospfv2-instance/ospfv2-area/ospfv2-interface/state
filter xpath /ios-ospf/native/router/ios-ospf:ospf
filter xpath /ios:native/router/ios-ospf:router-ospf/ios-ospf:ospf
HTH
ā02-25-2025 09:54 AM
Here are some useful tools to get paths, this was and is still a bit tricky for me. So these tools usually help.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide