2025-03-14 21:59:59 -06:00
|
|
|
# gnmic set
|
|
|
|
|
|
|
|
|
|
> Modify gnmi network device configuration.
|
|
|
|
|
> More information: <https://gnmic.kmrd.dev/cmd/set>.
|
|
|
|
|
|
|
|
|
|
- Update the value of a path:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path}} --update-value {{value}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Update the value of a path to match the contents of a JSON file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gnmic {{[-a|--address]}} {{ip:port}} set --update-path {{path}} --update-file {{filepath}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Replace the value of a path to match the contents of a JSON file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gnmic {{[-a|--address]}} {{ip:port}} set --replace-path {{path}} --replace-file {{filepath}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete the node at a given path:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gnmic {{[-a|--address]}} {{ip:port}} set --delete {{path}}`
|