Skip to main content

Installation Prerequisites

Things to be enabled on the switch for discovery - Enable NX-API - Configure a User with read-only permission to access NX-API

Steps to enable telemetry and NXAPI feature in Cisco switch

Login as admin and issue below commands 

switch# configure terminal 

switch(config)# feature nxapi 

To enable telemetry 

switch(config)# feature telemetry

Enter below command to validate whether telemetry is enabled or not

Switch# show feature | grep telemetry

hardware-telemetry     1          enabled

telemetry              1          enabled

Note : The port should be enabled & accessible to VW

User needs to enter below commands to make Switch Configurations changesUser needs to enter below commands to make Switch Configurations changes

Login as admin user

switch# configure terminal

switch(config)# telemetry

switch(config-telemetry)# destination-group 1

Add Appliance IP under Destination group using below command

switch(conf-tm-dest)# ip address 10.10.27.162 port 5997 protocol gRPC encoding GPB

switch(conf-tm-dest)# sensor-group 1

switch(conf-tm-sensor# data-source NX-API

User should have added below paths in telemetry config.

switch(conf-tm-sensor)# path "show cdp neighbors detail" depth 0

path "show environment" depth 0    

path "show hardware" depth 0    

path "show hostname" depth 0    

path "show interface" depth 0    

path "show interface switchport" depth 0    

path "show inventory module" depth 0    

path "show module" depth 0    

path "show nve interface" depth 0    

path "show nve vni" depth 0    

path "show nve vrf" depth 0    

path "show port-channel summary" depth 0    

path "show sprom backplane" depth 0    

path "show system resources" depth 0    

path "show vdc detail" depth 0    

path "show version" depth 0    

path "show vlan" depth 0    

path "show vlan counters" depth 0

switch(conf-tm-sensor)# subscription

switch(conf-tm-sub)# dst-grp 1

switch(conf-tm-dest)# snsr-grp 1 sample-interval 60000

Command to save the Telemetry config

switch(config)# copy running-config startup-config

Command to check the specified Telemetry config

switch(config)# show running-config telemetry

Configure Flow Table related paths reference document :

https://www.cisco.com/c/en/us/td/docs/dcn/nx-os/101x/Programmability/Nexus-3400-s/cisco-nexus-3400-s-series-nx-os-programmability-guide-release-101x/m-3400-s-hardware-telemetry-93x.html#id_77420