Forrest logo
back to the gnmic tool

gnmic-set:tldr:fcd3b

gnmic-set: Delete the node at a given path.
$ gnmic -a ${ip:port} set --delete ${path}
try on your machine

This command is using the gnmic tool to perform a set operation to delete a value specified by ${path} at a particular IP address and port.

Here's a breakdown of the command:

  • gnmic: This is the command-line tool being used.

  • -a ${ip:port}: This specifies the target IP address and port number where the operation will be performed. ${ip:port} is a placeholder, and you need to replace it with the actual IP address and port number you want to target.

  • set: This option tells the tool that you want to perform a set operation.

  • --delete: This flag indicates that the operation being performed is deletion. It tells the tool to remove the specified value at the path specified by ${path}.

  • ${path}: This is a placeholder for the path where the value will be deleted. It could represent an XPath, YANG path, or any other supported path format in the target system. You need to replace it with the actual path you wish to delete.

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