Forrest logo
back to the gnmic tool

gnmic-get:tldr:d8460

gnmic-get: Query the device state at multiple paths.
$ gnmic -a ${ip:port} get --path ${path1} --path ${path2}
try on your machine

This command is using the tool gnmic to retrieve data from a network management system. Here is a breakdown of the command:

  • gnmic: This is the name of the tool that is being executed in the command line.
  • -a ${ip:port}: This flag specifies the target address where the network management system is running. ${ip:port} represents a placeholder for the actual IP address and port number. You need to replace ${ip:port} with the specific IP address and port you want to connect to.
  • get: This command indicates that you want to retrieve data from the network management system.
  • --path ${path1}: This flag specifies the data path or object you want to retrieve from the network management system. ${path1} represents a placeholder for the actual path. You need to replace ${path1} with the specific path you want to retrieve.
  • --path ${path2}: This flag is optional and provides an additional data path or object to retrieve. ${path2} represents a placeholder for the actual path. You need to replace ${path2} with the specific path you want to retrieve.

In summary, this command is using gnmic to connect to a network management system at a specified IP address and port, then retrieve data from one or more specified paths.

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