cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1158
Views
0
Helpful
6
Replies

IOS-XE telemetry doesnt work

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.

6 Replies 6

@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

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

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 ?

 

@EdvinasKairys11982 it sounds like a routing issue, what VRF is your source in?

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

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

 

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

 

 

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.