gnmi icon indicating copy to clipboard operation
gnmi copied to clipboard

gnmi_cli improve help on command line options

Open wisotzky opened this issue 7 years ago • 2 comments

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.

wisotzky avatar Sep 19 '17 11:09 wisotzky

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?

aswathy269 avatar Dec 05 '18 13:12 aswathy269

test

kerkylove avatar Oct 09 '19 09:10 kerkylove