Configuring NetFlow
Creating a Sampler
You can create a flow sampler to definer the NetFlow sampling rate for a flow.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Applying a Flow Monitor to an Interface
You can not apply a flow monitor to an egress interface, only ingress Netflow is supported.
Note
OL-31641-01
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
sampler name
Example:
switch(config)# sampler testsampler
description string
Example:
switch(config-flow-sampler)#
description samples
mode sample-number out-of
packet-number
Example:
switch(config-flow-sampler)# mode 1
out-of 128
exit
Example:
switch(config-flow-sampler)# exit
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
Purpose
Enters global configuration mode.
Creates a sampler and enters flow sampler
configuration mode. You can enter up to 63
alphanumeric characters for the flow sampler name.
(Optional)
(Optional) Describes this sampler. You can enter up
to 63 alphanumeric characters for the description.
Defines the number of samples to take per the
number of packets received. The sample-number
range is from 1 to 64, and the packet-number range
is from 1 to 65536 packets.
Returns to global configuration mode.
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
Creating a Sampler
271