cisco-ie / pipeline-gnmi

A Model-Driven Telemetry collector based on the open-source tool pipeline
Apache License 2.0
32 stars 6 forks source link

gNMI dialin: Requested encoding "PROTO" not supported #57

Open regalleuchte opened 4 years ago

regalleuchte commented 4 years ago

Hi,

I'm trying to get wireless telemetry data from a C9800 (Cisco IOS XE 17.1.1s) into splunk via pipeline-gnmi (recent git clone) and kafka. GRPC Dial-Out is working fine. But I'm unable to get gNMI dialin to work.

Error message in pipeline.log:

time="2020-04-01 15:41:57.742095" level=info msg="gnmi: Connected" name=mygnmirouter server="10.15.20.1:50052" tag=pipeline type=gnmi username=splunk
time="2020-04-01 15:41:57.762555" level=info msg="gnmi: SubscribeClient running" name=mygnmirouter server="10.15.20.1:50052" tag=pipeline type=gnmi username=splunk
time="2020-04-01 15:41:57.764296" level=error msg="gnmi: server terminated sub" error="rpc error: code = Unimplemented desc = Requested encoding \"PROTO\" not supported" name=mygnmirouter server="10.15.20.1:50052" tag=pipeline type=gnmi username=splunk

config:

[mygnmirouter]
tls=false
username=splunk
password=[snipped]
stage=xport_input
type=gnmi
server=10.15.20.1:50052
path1=/interfaces-ios-xe-oper:interfaces@10 

Am I doing this wrong? I will be grateful for any help you can provide.

remingtonc commented 4 years ago

Hi @regalleuchte this was largely built around IOS XR and IOS XE currently only supports the JSON encoding as opposed to PROTO. I'd recommend switching to Telegraf if possible for future gNMI related use cases as it has more recent work in this area. https://github.com/influxdata/telegraf/tree/master/plugins/inputs/cisco_telemetry_gnmi