gnxi

gNMI Subscribe Client

A simple shell binary that performs gNMI Subscribe client operations against a gNMI target.

gNMI Subscribe Operations

There are 3 subscription modes that can be used:

Install

go get github.com/google/gnxi/gnmi_subscribe
go install github.com/google/gnxi/gnmi_subscribe

Run

./gnmi_subscribe \
    -xpath "/system/openflow/agent/config/datapath-id" \
    -xpath "/system/openflow/controllers/controller[name=main]" \
    -target_addr localhost:9339 \
    -target_name target.com \
    -ca ca.crt \
    -key client.key \
    -cert client.crt \
    -sample_interval 500000 \
    -encoding JSON_IETF