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
Purpose
Command 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
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......