cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
146
Views
0
Helpful
3
Replies

Cisco Telemetery XPATH

uni1389
Level 1
Level 1

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

 

3 Replies 3

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

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Marcel Zehnder
Spotlight
Spotlight

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

Jesus Illescas
Cisco Employee
Cisco Employee

Here are some useful tools to get paths, this was and is still a bit tricky for me. So these tools usually help.