Network Management
Sample Configuration for Cisco Nexus 5K Series
This article provides an example configuration for the Cisco Nexus 5600 Series - Release 7.x. The configuration is not guaranteed to work on your devices. For detailed information about configuring this type of device, see the Cisco documentation.
First published date
Last published date
Overview
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5600/sw/system_management/7x/b_5600_System_Mgmt_Config_7x/b_6k_System_Mgmt_Config_7x_chapter_010011.html (©2017 Cisco, available at https://www.cisco.com, obtained on November 10, 2017)
Product section
Resolution
Monitoring NetFlow
Use the show flow exporter command to display NetFlow statistics. Use the clear flow exporter command to clear NetFlow flow exporter statistics.
Example: Creating and Applying a Flow
This example shows how to create a flow and apply the flow to an interface:
feature netflow flow exporter ee version 9 flow record rr match ipv4 source address match ipv4 destination address collect counter bytes collect counter packets flow monitor foo record rr exporter ee sampler testsampler mode 1 out-of 65536 interface Ethernet2/45 ip flow monitor foo input sampler testsampler ip address 10.20.1.1/24 no switchport
Example: Configuring a NetFlow Exporter
This example shows how to configure a NetFlow exporter configuration for IPv4:
flow exporter pw destination 172.20.101.87 use-vrf management transport udp 3000 source mgmt0 version 9 flow record pw match ipv4 source address match ipv4 destination address match ip protocol match ip tos match transport source-port match transport destination-port collect counter bytes long collect counter packets long collect timestamp sys-uptime first collect timestamp sys-uptime last collect ip version sampler testsampler mode 1 out-of 65536 flow monitor pw record pw exporter pw interface Ethernet2/9 ip flow monitor pw input sampler testsampler