Forrest logo
back to the gnmic tool

gnmic:tldr:feb8a

gnmic: Update device state at a specific path.
$ gnmic -a ${ip:port} set --update-path ${path} --update-value ${value}
try on your machine

This command is using the 'gnmic' tool to send a gNMI (gRPC Network Management Interface) set request to a network device.

Here is the breakdown of the command:

  • 'gnmic' is the command-line tool used to interact with network devices using the gNMI protocol.
  • '-a ${ip:port}' specifies the address of the network device that the command will connect to. The '${ip:port}' part indicates that the IP address and port number need to be provided as inputs.
  • 'set' is the action being performed, in this case, it specifies that a set request is being made to update a value.
  • '--update-path ${path}' specifies the path where the update will occur. The '${path}' part suggests that the specific path needs to be provided as an input.
  • '--update-value ${value}' specifies the new value that will be set at the given path. The '${value}' part indicates that the value needs to be provided as an input.

Overall, this command connects to a network device at a given IP address and port number, and then sends a gNMI set request to update a particular value at a specified path on the device.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gnmic tool