gnmi
gnmi copied to clipboard
gnmi_cli improve help on command line options
It would be good to provide help for the usage of some command line options:
-count uint
Number of polling/streaming events (0 is infinite).
-display_indent string
Output line, per nesting-level indent. (default " ")
-display_prefix string
Per output line prefix.
-display_size
Display the total size of query response.
-display_type string
Display output type (g, group, s, single, p, proto). (default "group")
-latency
Display the latency for receiving each update (Now - update timestamp).
-v value
log level for V logs
-vmodule value
comma-separated list of pattern=N settings for file-filtered logging
Most of these options does not work at all in my test environment, so usage examples are welcome. Following command works for me:
# gnmi_cli -a pe1:57400 -with_user_pass -ca_crt CAcert.pem -qt s -dt p -pi 10s -q state/port[port-id=1/1/1]/ethernet/statistics/out-utilization
Expactation would be, that by adding the parameter -count 1
I would only see the first response. But in my setup it still streams forever.
Hi, I am using gnmi interface for first time for research purpose. Can you help me out in defining -q path? How do we set this?
test