CISCO NXOS (GRPC)

CISCO NXOS support its own way to stream telemetry data using GRPC, we can enable GRPC and can get offered metrics from the device

Enable GRPC

switch-1# configure terminal
switch-1(config)#
switch-1# feature grpc
switch-1(config)#
switch(config)# grpc use-vrf default

GRPC Verification

Show run GRPC

switch# show run grpc
!Command: show running-config grpc
!Running configuration last done at: Mon Jan 29 13:59:36 2024
!Time: Mon Jan 29 14:06:27 2024
version 9.3(9) Bios:version 04.18
feature grpc
grpc use-vrf default

GRPC Service Statistics

switch# show grpc gnmi service statistics
=============
gRPC Endpoint
=============
Vrf            : management
Server address : [::]:50051
Status         : Running - certificate expired
Cert notBefore : Jan 10 07:07:03 2024 GMT
Cert notAfter  : Jan 11 07:07:03 2024 GMT
Max concurrent calls            :  8
Listen calls                    :  1
Active calls                    :  0
Number of created calls         :  32
Number of bad calls             :  29
Subscription stream/once/poll   :  15/0/0
Max gNMI::Get concurrent        :  5
Max grpc message size           :  8388608
gNMI Synchronous calls          :  20496
gNMI Synchronous errors         :  0
gNMI Adapter errors             :  0
gNMI Dtx errors                 :  0
=============
gRPC Endpoint
=============
Vrf            : default
Server address : [::]:50051
Status         : Running - certificate expired
Cert notBefore : Jan 10 07:07:03 2024 GMT
Cert notAfter  : Jan 11 07:07:03 2024 GMT
Max concurrent calls            :  8
Listen calls                    :  1
Active calls                    :  0
Number of created calls         :  1
Number of bad calls             :  0
Subscription stream/once/poll   :  0/0/0
Max gNMI::Get concurrent        :  5
Max grpc message size           :  8388608
gNMI Synchronous calls          :  0
gNMI Synchronous errors         :  0
gNMI Adapter errors             :  0
gNMI Dtx errors                 :  0

GRPC Summary

switch# show grpc gnmi rpc summary
=============
gRPC Endpoint
=============
Vrf            : management
Server address : [::]:50051
Status         : Running - certificate expired
Cert notBefore : Jan 10 07:07:03 2024 GMT
Cert notAfter  : Jan 11 07:07:03 2024 GMT
Capability rpcs    : 20474
Capability errors  : 0
Get rpcs           : 22
Get errors         : 0
Set rpcs           : 0
Set errors         : 0
Resource Exhausted : 0
Option Unsupported : 0
Invalid Argument   : 0
Operation Aborted  : 0
Internal Error     : 0
Unknown Error      : 0
RPC Type        State      Last Activity  Cnt Req    Cnt Resp   Client
--------------- ---------- -------------- ---------- ---------- ----------------------------------------
Subscribe       Listen     01/29 08:42:41          0          0
=============
gRPC Endpoint
=============
Vrf            : default
Server address : [::]:50051
Status         : Running - certificate expired
Cert notBefore : Jan 10 07:07:03 2024 GMT
Cert notAfter  : Jan 11 07:07:03 2024 GMT
Capability rpcs    : 0
Capability errors  : 0
Get rpcs           : 0
Get errors         : 0
Set rpcs           : 0
Set errors         : 0
Resource Exhausted : 0
Option Unsupported : 0
Invalid Argument   : 0
Operation Aborted  : 0
Internal Error     : 0
Unknown Error      : 0
RPC Type        State      Last Activity  Cnt Req    Cnt Resp   Client
--------------- ---------- -------------- ---------- ---------- ----------------------------------------
Subscribe       Listen     01/10 08:12:32          0          0
switch#
switch# show grpc gnmi transactions
=============
gRPC Endpoint
=============
Vrf            : management
Server address : [::]:50051
Status         : Running - certificate expired
Cert notBefore : Jan 10 07:07:03 2024 GMT
Cert notAfter  : Jan 11 07:07:03 2024 GMT
RPC          DataType   Session         Time In              Duration(ms) Status
------------ ---------- --------------- -------------------- ------------ ------
Capabilities -          0               01/29 12:04:07       0            0
Capabilities -          0               01/29 12:03:47       0            0
Capabilities -          0               01/29 12:03:35       0            0
Get          ALL        3698131864      01/29 08:43:34       1186         0
...
...
...

Supported Telemetry

switch# show telemetry yang direct-path cisco-nxos-device
1) Cisco-NX-OS-device:System/lldp-items
2) Cisco-NX-OS-device:System/mac-items
3) Cisco-NX-OS-device:System/intf-items
4) Cisco-NX-OS-device:System/procsys-items
5) Cisco-NX-OS-device:System/ipqos-items/queuing-items/policy-items/out-items
6) Cisco-NX-OS-device:System/ch-items

Last updated

Copyright © Aviz Networks, Inc.