I'm new to SONiC and gNMI. Currently running a SONiC VM using one of the 11/2011 images, and can ssh into it.
I'd like to interact with SONiC via the host machine using gNMI and gNOI. I can ping the SONiC VM. The IP of the SONiC VM on the local machine is 10.64.85.105.
The Capabilities command works with no issues:
gnmi_cli -insecure -with_user_pass -capabilities -address 10.64.85.105:8080
However, I get errors in any other gnmi command I run at the host. Can you please help me resolve the issue. Am I using the correct set of gNMI clients for SONiC? Do I need to do something else? Here are three examples:
Command: (Subscribe)gnmi_cli -insecure -logtostderr -address
10.64.85.105:8080 -query_type s -streaming_type TARGET_DEFINED -q /openconfig-interfaces:interfaces/interface[name=Ethernet0]/state/oper-status -target OC-YANG -with_user_pass
Error:flag provided but not defined: -streaming_type
Command: (Set)gnmi_set -insecure -username admin -password YourPaSsWoRd -update /openconfig-interfaces:interfaces/interface[name=Ethernet0]/config/mtu:@./set_example.json -target_addr
10.64.85.105:8080 -xpath_target OC-YANG
Error:flag provided but not defined: -xpath_target
Command: (Get)gnmi_get -insecure -username admin -password YourPaSsWoRd -xpath /openconfig-interfaces:interfaces/interface[name=Ethernet0]/config -target_addr
10.64.85.105:8080 -xpath_target OC-YANG
Error:flag provided but not defined: -xpath_target