- gNMI - gRPC Network Management Interface
- gNOI - gRPC Network Operations Interface
A collection of tools for Network Management that use the gNMI and gNOI protocols.
Note: These tools are intended for testing and as reference implementation of the protocol.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See Docker for instructions on how to test against network equipment.
Install go in your system https://golang.org/doc/install. Requires golang1.7+.
Clone the project to your go source folder:
mkdir -p $GOPATH/src/github.com/google/
cd $GOPATH/src/github.com/google/
git clone https://github.com/neoul/gnxi.git
To run the binaries:
cd $GOPATH/src/github.com/neoul/gnxi/gnmi_get
go run ./gnmi_get.go
FAUCET currently includes a Dockerfile to setup the environment that facilitates testing these tools against network equipment.
- This is not an official Google product.
- See how to contribute.
go get -u -v -f all
# or
go get -u ./...
gnmic -a 192.168.0.77:10161 -u neoul -p admin --tls-ca pki/ca.crt --tls-cert pki/client.crt --tls-key pki/client.key capabilities
gnmic -a 192.168.0.77:10161 -u neoul -p admin --tls-ca pki/ca.crt --tls-cert pki/client.crt --tls-key pki/client.key sub --path "openconfig-interfaces:interfaces/interface"
gnmic -a 192.168.0.77:10161 -u neoul -p admin --tls-ca pki/ca.crt --tls-cert pki/client.crt --tls-key pki/client.key sub --path "/interfaces/interface[name=lo]"
gnmic -a 192.168.0.77:10161 -u neoul -p admin --tls-ca pki/ca.crt --tls-cert pki/client.crt --tls-key pki/client.key sub --path "/interfaces/interface[name=lo]" --path "/messages" --stream-mode ON_CHANGE
gnmic -a 192.168.0.77:10161 -u neoul -p admin --tls-ca pki/ca.crt --tls-cert pki/client.crt --tls-key pki/client.key get --path "/interfaces/interface[name=lo]"
gnmic -a 192.168.0.77:10161 -u neoul -p admin --tls-ca pki/ca.crt --tls-cert pki/client.crt --tls-key pki/client.key set --delete "/interfaces/interface[name=lo]"
gnmic -a 192.168.0.77:10161 -u neoul -p admin --tls-ca pki/ca.crt --tls-cert pki/client.crt --tls-key pki/client.key sub --path "openconfig-interfaces:interfaces/interface/state/counters" --sample-interval 10s --heartbeat-interval 20s --stream-mode sample --suppress-redundant --log
- Path Aliases processing
- Add and delete path aliases
- Client-defined Aliases
- Target-defined Aliases
- Target and Origin in gNMI Path
- 3.5.2.1 Bundling of Telemetry Updates: Spec error described in openconfig/reference#59