LinuxCommandLibrary

gnmic

A gNMI command-line client.

TLDR

Request device capabilities

$ gnmic --address [ip:port] capabilities
copy


Provide a username and password to fetch device capabilities
$ gnmic --address [ip:port] --username [username] --password [password] capabilities
copy


Get a snapshot of the device state at a specific path
$ gnmic -a [ip:port] get --path [path]
copy


Update device state at a specific path
$ gnmic -a [ip:port] set --update-path [path] --update-value [value]
copy


Subscribe to target state updates under the subtree at a specific path
$ gnmic -a [ip:port] subscribe --path [path]
copy

Copied to clipboard