sampler
To create a Flexible NetFlow flow sampler, or to modify an existing Flexible NetFlow flow sampler, and to
enter Flexible NetFlow sampler configuration mode, use the sampler command in global configuration mode.
To remove a sampler, use the no form of this command.
sampler sampler-name
no sampler sampler-name
Syntax Description
Name of the flow sampler that is being created or modified.
sampler-name
Command Default
Flexible NetFlow flow samplers are not configured.
Command Modes
Global configuration
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SE
Usage Guidelines
Flow samplers are used to reduce the load placed by Flexible NetFlow on the networking device to monitor
traffic by limiting the number of packets that are analyzed. You configure a rate of sampling that is 1 out of
a range of 2-1024 packets. Flow samplers are applied to interfaces in conjunction with a flow monitor to
implement sampled Flexible NetFlow.
To enable flow sampling, you configure the record that you want to use for traffic analysis and assign it to a
flow monitor. When you apply a flow monitor with a sampler to an interface, the sampled packets are analyzed
at the rate specified by the sampler and compared with the flow record associated with the flow monitor. If
the analyzed packets meet the criteria specified by the flow record, they are added to the flow monitor cache.
Examples
The following example creates a flow sampler name SAMPLER-1:
Device(config)# sampler SAMPLER-1
Device(config-sampler)#
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
461
sampler