mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 11:43:50 +00:00
26 lines
819 B
Plaintext
26 lines
819 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|