Forrest logo
back to the gnmic tool

gnmic-get:tldr:6772a

gnmic-get: Get a snapshot of the device state at a specific path.
$ gnmic --address ${ip:port} get --path ${path}
try on your machine

The given command is using the "gnmic" tool to send a gNMI (gRPC Network Management Interface) "get" request to a specified IP address and port.

Here's a breakdown of the command:

  • "gnmic": This is the name of the tool being executed.
  • "--address ${ip:port}": This option specifies the address (combination of IP and port) of the gNMI server to which the "get" request will be sent. The "${ip:port}" is a placeholder that should be replaced with the actual IP address and port number.
  • "get": This part of the command specifies that a "get" request is being made to retrieve data from the gNMI server.
  • "--path ${path}": This option specifies the path of the data that is being requested. The "${path}" is a placeholder that should be replaced with the actual path.

In summary, the command is used to establish a connection with a gNMI server at a specified IP address and port, and then send a "get" request to retrieve data at a specific path.

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