snippetbashTip
gnmic set — Modify gnmi network device configuration. More information: <https://gnmic.openconfig.net/cmd/set/>.
Viewed 0 times
configurationcommandmodifygnminetworkclignmic setdevice
Problem
How to use the
gnmic set command: Modify gnmi network device configuration. More information: <https://gnmic.openconfig.net/cmd/set/>.Solution
gnmic set — Modify gnmi network device configuration. More information: <https://gnmic.openconfig.net/cmd/set/>.Update the value of a path:
gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path/to/directory}} --update-value {{value}}Update the value of a path to match the contents of a JSON file:
gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path/to/directory}} --update-file {{path/to/file}}Replace the value of a path to match the contents of a JSON file:
gnmic {{[-a|--address]}} {{ip:port}} set --replace-path {{path/to/directory}} --replace-file {{path/to/file}}Delete the node at a given path:
gnmic {{[-a|--address]}} {{ip:port}} set --delete {{path/to/directory}}Code Snippets
Update the value of a path
gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path/to/directory}} --update-value {{value}}Update the value of a path to match the contents of a JSON file
gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path/to/directory}} --update-file {{path/to/file}}Replace the value of a path to match the contents of a JSON file
gnmic {{[-a|--address]}} {{ip:port}} set --replace-path {{path/to/directory}} --replace-file {{path/to/file}}Delete the node at a given path
gnmic {{[-a|--address]}} {{ip:port}} set --delete {{path/to/directory}}Context
tldr-pages: common/gnmic set
Revisions (0)
No revisions yet.