aristanetworks / goarista

Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.
Apache License 2.0
213 stars 68 forks source link

GNMI - Unable to subscribe to use stream_mode with sample_interval #36

Closed stangedas closed 5 years ago

stangedas commented 5 years ago

I am trying to use gnmi to enable -stream_mode sample and set a sample_interval of 1 min when using subscribe mode. I get below error root@jumphost:~# gnmi -addr 10.xx.xx.xx:5909 -username user -password password -mode stream -stream_mode sample -sample_interval 1m subscribe '/components/component[name=PowerSupply1]/properties/' F0502 14:56:40.145280 6775 main.go:141] rpc error: code = Unimplemented desc = only TARGET_DEFINED Subscription mode supported.

Am i using the wrong flags?

aaronbee commented 5 years ago

SAMPLE stream mode support was added to Arista's EOS in 4.21.3F.

stangedas commented 5 years ago

Thank you Aaron we updated our EOS to latest available and the feature is working as expected.