Options (3)
-a, --addressbooleanSubscribe to target state updates under the subtree of a specific path
Example:
gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}}booleanSubscribe to target state updates under the subtree of a specific path
Example:
gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}}-e, --encodingbooleanSubscribe to a target and specify response encoding (json_ietf)
Example:
gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}} {{[-e|--encoding]}} json_ietfExamples (5)
Subscribe to target state updates under the subtree of a specific path
gnmic [-a|--address] ip:port [sub|subscribe] --path pathSubscribe to a target with a sample interval of 30s (default is 10s)
gnmic [-a|--address] ip:port [sub|subscribe] --path path --sample-interval 30sSubscribe to a target with sample interval and updates only on change
gnmic [-a|--address] ip:port [sub|subscribe] --path path --stream-mode on-change --heartbeat-interval 1mSubscribe to a target for only one update
gnmic [-a|--address] ip:port [sub|subscribe] --path path --mode onceSubscribe to a target and specify response encoding (json_ietf)
gnmic [-a|--address] ip:port [sub|subscribe] --path path [-e|--encoding] json_ietfmade by @shridhargupta | data from tldr-pages