01-03-2023 12:22 PM
Hi everyone
I have problems configuring a subscription with grpc on the catalys 3650 switch.
Software version:Cisco IOS XE Software, Version 16.06.03
Configuration:
telemetry ietf subscription 10
encoding encode-kvgpb
filter xpath /interfaces-ios-xe-oper:interfaces/interface[name='GigabitEthernet1/0/3']/statistics
receiver ip address 10.51.141.242 57000 protocol grpc-tcp
stream yang-push
update-policy periodic 500
!
netconf-yang
!
#show telemetry ietf subscription 10 deta
Telemetry subscription detail:
Subscription ID: 10
Type: Configured
State: Invalid
Stream: yang-push
Encoding: encode-kvgpb
Filter:
Filter type: xpath
XPath: /interfaces-ios-xe-oper:interfaces/interface[name='GigabitEthernet1/0/3']/statistics
Update policy:
Update Trigger: periodic
Period: 500
Notes: Stream not supported
Receivers:
Address Port Protocol
-------------------------------------------------
10.51.141.242 57000 grpc-tcp
I have configured this subscription on catalys 9300 and it works.
I appreciate your feedback for this issue.
Solved! Go to Solution.
01-05-2023 02:43 PM
The problem was the software version, in IOS-XE 16.12.5.b works fine. Thanks all for your help.
01-03-2023 01:21 PM - edited 01-03-2023 01:21 PM
what is not working, is the telemetry data not sending ?
# show platform software yang-management process
check some troubleshooting tips, also consider going to latest stable IOS XE.
01-03-2023 02:41 PM
Hi
The problem is that the subscription State is: Invalid.
switch#show telemetry ietf subscription 10 brief
Telemetry subscription brief
ID Type State Filter type
-----------------------------------------------------
10 Configured Invalid xpath
switch#show platform software yang-management process
confd : Running
nesd : Running
syncfd : Running
ncsshd : Running
dmiauthd : Running
vtyserverutild : Running
opdatamgrd : Running
nginx : Running
ndbmand : Running
pubd : Running
01-03-2023 03:09 PM
the reason for invalid :
Named receiver objects and subscription receiver objects (that refer to the named receiver) have two different operational states. The operational states are valid or invalid. The most common reason for a named receiver to be invalid is incomplete configuration, however; it could also be due to other reasons. The operational state view of a named receiver has a field that provides a text explanation on why the receiver is invalid. When the receiver state is valid, this field is empty.
# show telemetry receiver all
I also see your OP (looks for me some limitation here) - Cat 9300 are latest IOS Xe you may be running 17.X code I guess here)
Notes: Stream not supported
01-04-2023 07:37 AM
#show telemetry receiver all
This command is not accepted
#show telemetry ?
ietf IETF information
#show telemetry
Another observation, in the configuration is not possible put: source-address. In Catalyst 9300 this opcion is enable and the STATE is VALID.
The YANG MODELS supported:
#show platform software ndbman switch active R0 models
NDBMan Active Models
Name Revision
----------------------------------------------------------------------------------
acl-ios-xe-oper 2017-02-07
bgp-ios-xe-oper 2017-04-01
cdp-ios-xe-oper 2017-02-07
checkpoint-archive-i 2017-04-01
efp-stats-ios-xe-ope 2017-02-07
environment-ios-xe-o 2017-02-07
flow-monitor-ios-xe- 2017-04-01
ip-sla-ios-xe-oper 2017-04-01
lldp-ios-xe-oper 2017-02-07
mdt-cfg 2017-03-02
mdt-oper 2017-03-02
memory-ios-xe-oper 2017-04-01
platform-ios-xe-oper 2017-02-06
platform-sw-ios-xe-o 2017-04-01
process-cpu-ios-xe-o 2017-02-07
process-memory-ios-x 2017-02-07
trustsec-ios-xe-oper 2017-02-07
btrace-eventq 2017-01-01
ios-emul-oper-db 2016-11-01
iosxe-oper 2016-11-01
#
01-04-2023 03:19 AM
Hello,
it might be that 'encode-kvgpb' is not supported in your XE version. Try XML
Encoding: encode-kvgpb
Encoding: encode-xml
01-04-2023 07:24 AM
Doesn´t work.
switch#show telemetry ietf subscription 12 det
Telemetry subscription detail:
Subscription ID: 12
Type: Configured
State: Invalid
Stream: yang-push
Encoding: encode-xml
Filter:
Filter type: xpath
XPath: /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds
Update policy:
Update Trigger: periodic
Period: 500
Notes: Stream not supported
Receivers:
Address Port Protocol
-------------------------------------------------
10.51.141.242 57000 grpc-tcp
switch#show telemetry ietf subscription 12
Telemetry subscription brief
ID Type State Filter type
-----------------------------------------------------
12 Configured Invalid xpath
In the configuration is not possible put: source-address. In Catalyst 9300 this opcion is enable and the STATE is VALID.
Maybe, could it be the software version?
01-04-2023 08:40 AM - edited 01-04-2023 09:03 AM
Hello,
my bad...encode-xml does not work with grpc-tcp, only encode-kvgpb does...
EDIT: I found several examples of Telemetry in 'Everest' releases (the 16.06 you are running), and they all use XML encoding (encode-xml). XML encoding only works with gNMI and NETCONF as transport protocols, and not with gRPC, Try and figure out how to set encode-xml with either gNMI or NETCONF as transport protocol...
01-04-2023 01:33 PM
Please, Can you share de examples of Telemetry in 'Everest' releases 16.06?
01-05-2023 01:36 AM
01-05-2023 02:43 PM
The problem was the software version, in IOS-XE 16.12.5.b works fine. Thanks all for your help.
01-05-2023 02:55 PM
Glad it was working :
that is my suggestion ( I mean to say the version you used may be limitation) - that is the reason provided 16.12 documentation, so you can update the code to test.
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