Skip to main content

Configuring Cisco Nexus 3k Series Devices

This document outlines the configuration of sFlow on Cisco Nexus 3K Series devices, including necessary commands and related show commands.

sFlow Configuration Commands

Enter the following commands in configuration mode:

Open configuration terminal:

config t

Enable sFlow:

feature sflow

Set the maximum sampled size:

sflow max-sampled-size 256

Set the counter poll interval:

sflow counter-poll-interval poll-interval 30

Set the maximum datagram size:

sflow max-datagram-size 2000

Configure the sFlow collector IP:

sflow collector-ip {MOTADATA_NETFLOW Server IP} vrf management

Set the collector port:

sflow collector-port 2055

Set the agent IP:

sflow agent-ip {ip address of device}

Configure the data source interface:

sflow data-source interface ethernet 1/5-12

Example Configuration

config
feature sflow
sflow max-sampled-size 256
sflow counter-poll-interval poll-interval 30
sflow max-datagram-size 2000
sflow collector-ip 2.2.2.2 vrf management
sflow collector-port 2055
sflow agent-ip 1.1.1.1
sflow data-source interface ethernet 1/5-12

sFlow Show Commands

To display the sFlow configuration information, use the following commands:

  • To display the global configuration:
show sflow
  • To display sFlow statistics:
show sflow statistics
  • To clear the sFlow statistics:
clear sflow statistics
  • To display the current running sFlow configuration:
show running-config sflow[all]

After completing the configuration, navigate to Menu > Flow Explorer and select Explorer to view the active flow data.