2022-09-01 19:57:16 +01:00
|
|
|
# gnmic set
|
|
|
|
|
|
|
|
> Modify gnmi network device configuration.
|
|
|
|
> More information: <https://gnmic.kmrd.dev/cmd/set>.
|
|
|
|
|
|
|
|
- Update the value of a path:
|
|
|
|
|
|
|
|
`gnmic --address {{ip:port}} set --update-path {{path}} --update-value {{value}}`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- Update the value of a path to match the contents of a JSON file:
|
2022-09-01 19:57:16 +01:00
|
|
|
|
|
|
|
`gnmic -a {{ip:port}} set --update-path {{path}} --update-file {{filepath}}`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- Replace the value of a path to match the contents of a JSON file:
|
2022-09-01 19:57:16 +01:00
|
|
|
|
|
|
|
`gnmic -a {{ip:port}} set --replace-path {{path}} --replace-file {{filepath}}`
|
|
|
|
|
|
|
|
- Delete the node at a given path:
|
|
|
|
|
|
|
|
`gnmic -a {{ip:port}} set --delete {{path}}`
|