Task 3 - Verify gNMI Connectivity

Verify that gNMI is reachable (typically on port 57400) using the gnmic client.

Install gnmic:

bash -c "$(curl -sL https://get-gnmic.openconfig.net)"

Check the connectivity to routers:

gnmic -a ceos-01:6030 -u admin -p admin --insecure capabilities

You will need a different port number and flag for SR Linux routers

gnmic -a srl-01:57400 -u admin -p NokiaSrl1! --skip-verify capabilities

To avoid repeating the global flags, we can use configuration files:

gnmic --config ceos-gnmic.yml capabilities
gnmic --config srl-gnmic.yml capabilities

To override the target device in the configuration file:

gnmic --config srl-gnmic.yml -a srl-02 capabilities

Conclusion

With gnmic successfully communicating with both SR Linux and cEOS, you have verified that the gNMI service is operational. Unlike NETCONF, which uses XML over SSH, gNMI uses a more modern gRPC transport, providing a different set of capabilities that we will explore in the coming tasks.