SUMMARY STEPS
1.
configure terminal
2.
sampler name
3.
description string
4.
mode { deterministic { m - n } | random { m - n }}
5.
end
6.
show sampler [name]
7.
copy running-config startup-config
DETAILED STEPS
PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Creates a sampler and enters flow sampler configuration mode.
sampler name
Step 2
Example:
Switch(config)# sampler SampleTest
Switch(config-flow-sampler)#
(Optional) Describes this flow record as a maximum 63-character string.
description string
Step 3
Example:
Switch(config-flow-sampler)#
description samples
Defines the random sample mode.
mode { deterministic { m - n } | random
{ m - n }}
Step 4
You can configure either a random or deterministic sampler to an interface.
Select m packets out of an n packet window. The window size to select
packets from ranges from 32 to 1022.
Example:
Switch(config-flow-sampler)# mode
Note the following when configuring a sampler to an interface:
random 1 out-of 1022
•
When you attach a monitor using deterministic sampler (for example,
s1), every attachment with same sampler s1 uses one new free sampler
from the switch (hardware) out of 4 available samplers. Therefore,
beyond 4 attachments, you are not allowed to attach a monitor with
any sampler.
•
In contrast, when you attach a monitor using random sampler (for
example-again, s1), only the first attachment uses a new sampler from
the switch (hardware). The rest of all attachments using the same
sampler s1, share the same sampler.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
528
How to Configure NetFlow Lite