Forrest logo
back to the gnmic tool

gnmic-subscribe:tldr:f749f

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

The command "gnmic --address ${ip:port} subscribe --path ${path}" is a command-line interface (CLI) command used to execute GNMI (gRPC Network Managment Interface) commands.

Here is the breakdown of the individual components and their meanings:

  • gnmic: This is the main command used to run the GNMI CLI tool.

  • --address ${ip:port}: This flag specifies the IP address and port number where the GNMI target is running. The ${ip:port} is usually a placeholder that should be replaced with the actual IP and port numbers.

  • subscribe: This sub-command indicates that you want to subscribe to a specific GNMI path or paths. Subscribing means that you will receive updates for the selected paths whenever there are changes.

  • --path ${path}: This flag is used to specify the GNMI path to subscribe to. The ${path} is usually a placeholder that should be replaced with the actual GNMI path you want to monitor.

Overall, this command can be used to establish a connection with a GNMI target at a specific IP and port, and subscribe to a specific GNMI path or paths in order to receive updates for that 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