LinuxCommandLibrary

gnmic

gNMI network management CLI client

TLDR

Get configuration

$ gnmic -a [router:57400] get --path [/interfaces]
copy
Set value
$ gnmic -a [router:57400] set --update-path [/interface/name] --update-value "[eth0]"
copy
Subscribe to telemetry
$ gnmic -a [router:57400] subscribe --path [/interfaces/interface/statistics]
copy
List capabilities
$ gnmic -a [router:57400] capabilities
copy

SYNOPSIS

gnmic [options] command

DESCRIPTION

gnmic is a gNMI (gRPC Network Management Interface) CLI client. It interacts with network devices supporting gNMI for configuration retrieval, modification, and streaming telemetry.
The tool supports get, set, subscribe, and capability operations. It is used for network automation and monitoring with modern network operating systems.

PARAMETERS

-a ADDRESS

Target address:port.
get
Get configuration/state.
set
Set configuration.
subscribe
Subscribe to telemetry.
capabilities
Query capabilities.
--path PATH
YANG path.
--help
Display help information.

CONFIGURATION

~/.gnmic.yaml

Global configuration file for targets, credentials, and default settings.
.gnmic.yaml
Per-directory configuration file for project-specific settings.

CAVEATS

Target must support gNMI. Authentication may be required. YANG model knowledge helpful.

HISTORY

gnmic was created by Nokia to provide a flexible gNMI client for network automation and telemetry collection.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community