Enabling sFlow on Cisco Nexus 3000

Different from that of other Cisco IOS devices,Cisco Nexus 3000 Series supports sFlow. Hence I thought this blog will be helpful for our customers to know how to configure sFlow on their Nexus 3000.

The configuration is as follow:

switchNexus3000# configure terminal //switching to configuration mode

switchNexus3000(config)# feature sflow // enabling sFlow configuration

switchNexus3000(config)# sflow sampling-rate 4096 // this enables sampling

switchNexus3000(config)# sflow max-sampled-size 200 // we mentioned the size of the sampled packet

switchNexus3000(config)# sflow collector-port 9996 // to which port the packets to be sent

switchNexus3000(config)# sflow data-source interface port-channel 100 // Specifies the source interface

switchNexus3000(config)# sflow agent-ip x.x.x.x // specifies the sflow agent IP

switchNexus3000(config)# sflow counter-poll-interval 20 // Polling interval

switchNexus3000(config)# sflow max-datagram-size 2000 // sFlow maximum datagram size

switchNexus3000(config)# sflow collector-ip 192.1681.1 vrf default 

 we can use either default vrf, management vrf or a user defined one.

• A user-defined VRF :You can specify a maximum of 32 alphanumeric characters.

• vrf management     : if the sFlow data collector is on the network connected to the management port.

• vrf default        : if the sFlow data collector is on the network connected to the front panel ports.

 switchNexus3000(config)# copy running-config startup-config // Saves the change persistently and restarts by copying the running configuration to the startup configuration.

 

To make display the sFlow configuration and statistics, you can use the commands given below:

show sflow

show sflow statistics 

 

Example configuration:

switchNexus3000(config)# feature sflow

switchNexus3000(config)# sflow sampling-rate 4096

switchNexus3000(config)# sflow max-sampled-size 200

switchNexus3000(config)# sflow counter-poll-interval 100

switchNexus3000(config)# sflow max-datagram-size 2000

switchNexus3000(config)# sflow collector-ip 192.1681.1 vrf default

switchNexus3000(config)# sflow collector-port 9996

switchNexus3000(config)# sflow agent-ip 10.10.2.1

switchNexus3000(config)# sflow data-source interface Port-channel 100

 

Thus we will be able to configure Cisco Nexus 3000 as mentioned and start monitoring it with Manageengine NetFlow Analyzer.

You can download a free 30 day trial from here.

 

Praveen Manohar

NetFlow Analyzer Technical Team

Download | Interactive Demo  | Twitter | Customers

 

 

You Can Learn More About the ManageEngine Product Line By Going to www.ManageEngine.ca

The original article/video can be found at Enabling sFlow on Cisco Nexus 3000

About the Author: Shannon Lewis

Leave a Reply Cancel reply