Forrest logo
back to the gnmic tool

gnmic:tldr:a5b11

gnmic: Subscribe to target state updates under the subtree at a specific path.
$ gnmic -a ${ip:port} subscribe --path ${path}
try on your machine

This command is invoking the "gnmic" command-line tool with the following parameters and flags:

  • "-a ${ip:port}": This flag specifies the target address to connect to. The value "${ip:port}" is a placeholder that should be replaced with the actual IP address and port number (e.g., "192.168.0.1:1234").

  • "subscribe": This is the action to perform with the gnmic tool. In this case, it requests to subscribe to a data stream.

  • "--path ${path}": This flag specifies the path for the subscription. The value "${path}" should be replaced with the actual path for the subscription (e.g., "/interfaces/interface[name=eth0]/state/counters").

Overall, this command is used to subscribe to a data stream at a specific IP address and port number, using the gnmic tool. The data streamed will be determined by the provided 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