Monitoring NetFlow
Use the show flow exporter command to display NetFlow statistics. Use the clear flow exporter command
to clear NetFlow flow exporter statistics.
Configuration Examples for NetFlow
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
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
OL-31641-01 275
Configuring NetFlow
Monitoring NetFlow