06-21-2022 03:08 AM
I'm trying to run simple monitoring with Telemetry, by looking at this video: https://www.youtube.com/watch?v=erTyK0WDsT0&t=2556s
I've configured everything, but Cisco device doesn't send any packet to the receiver. The server side uses Influxdb + Telegraf. Config on Cisco looks as follows:
RTR02# show running-config | section netconf netconf-yang RTR02# show running-config | section telemetry telemetry ietf subscription 1 encoding encode-kvgpb filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds source-address 10.254.34.104 stream yang-push update-policy periodic 500 receiver ip address 10.34.35.239 57000 protocol grpc-tcp
the only thing i dont like is this error:
RTR02#show telemetry ietf subscription 1 receiver Telemetry subscription receivers detail: Subscription ID: 1 Address: 10.34.35.239 Port: 57000 Protocol: grpc-tcp Security profile: State: Disconnected Explanation: Connection setup failed
The reachability to receiver node (Telegraf) works good.
TR02#telnet 10.34.35.239 57000 /source-interface loopback 100 Trying 10.34.35.239, 57000 ... Open
Also, i've tried to do packet capture on IOS-XE, seems it doesnt even send a packet towards receiver.
06-21-2022 06:42 AM
@EdvinasKairys11982 what does `show platform software yang-management process` show? This document will help also, https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/173/b_173_programmability_cg/model_driven_telemetry.html
06-21-2022 06:58 AM
thanks you, i'm reading lots of manuals, bet nothing new.
first it was showing:
show platform software yang-management process confd : Running nesd : Running syncfd : Running ncsshd : Running dmiauthd : Running nginx : Not Running ndbmand : Running pubd : Running
But after I enabled the ip http server, the nginx changed to running:
confd : Running nesd : Running syncfd : Running ncsshd : Running dmiauthd : Running nginx : Running ndbmand : Running pubd : Running
also tried to reconfigure all telemetry configuration - same situation, it still doesnt work.
any ideas ?
06-21-2022 09:00 AM
@EdvinasKairys11982 it sounds like a routing issue, what VRF is your source in?
06-21-2022 09:50 AM - edited 06-21-2022 09:50 AM
There're only default table, but it's divided into two OSPF instances. I'm thinking if that could be a 'problem' for IOS-XE ?
its reachable:
TR02#telnet 10.34.35.239 57000 /source-interface loopback 100 Trying 10.34.35.239, 57000 ... Open
06-22-2022 08:32 PM - edited 06-22-2022 08:34 PM
Hello,
Could you specify which IOS-XE version are you using?
Could you execute those commands then put the output ?
show telemetry ietf subscription 1 detail show telemetry ietf subscription 1 receiver
06-23-2022 01:58 AM
hello, thanks.
the version is:
IOS-XE Version 16.9.3
Maybe my version is too old for telemetry, i heard that newer, for example 16.10 supports something like GRPC Dial out, maybe that would help. I'm planning to upgrade my device to latest version.
RTR02#show telemetry ietf subscription 1 detail Telemetry subscription detail: Subscription ID: 1 Type: Configured State: Valid Stream: yang-push Filter: Filter type: xpath XPath: /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds Update policy: Update Trigger: periodic Period: 500 Encoding: encode-kvgpb Source VRF: Source Address: 10.254.34.104 Notes: Receivers: Address Port Protocol SecurityProfile ------------------------------------------------------------------ 10.34.35.239 57000 grpc-tcp RTR02#show telemetry ietf subscription 1 receiver Telemetry subscription receivers detail: Subscription ID: 1 Address: 10.34.35.239 Port: 57000 Protocol: grpc-tcp Security profile: State: Disconnected Explanation: Connection setup failed
it shows that the connection setup failed, but i dont know the reason, debug doesnt show anything.
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