DGS-6604
m
sflow sampler
CLI Reference Guide
569
sflow sampler
Use the
sflow sampler
command to create/configure a Sampler for the sFlow
agent. Use the
no
form of this command to delete one Sampler or all Samplers.
sflow sampler
INSTANCE
[receiver
RECEIVER
] [sampling-rate
RATE
] [max-header-size
SIZE
]
no sflow sampler [
INSTANCE
]
Default
No Sampler is created.
Command Mode
Interface configuration mode
Usage Guideline
The command is available for physical port interface configuration.
A sampler can only be configured on one interface. It cannot be associated with
multiple interfaces.
Use this command without keywords to create a default Sampler or to reset an
existing Sampler to default values. Use the
no
form of this command with
INSTANCE to delete one Sampler. Use the
no
form of this command without
INSTANCE to delete all Samplers.
The user can only specify a Receiver that has its owner name setup. If the
Receiver associated with the sampler has its owner name reset, the sampler will
be reset to the default setting. The Receiver ID of a default sampler is 0.
Set sampling rate to N will cause the system to sample one packet for every N
packets arriving on the monitored interface. The sampled packet is sent to the
sFlow Receiver. Setting the sampling rate to 0 will disable the sampling. The
granularity of the sampling rate is project dependent.
An interface can be configured with multiple samplers. If multiple samplers are
configured, the configured sampling rate can be different. However, the sampling
rate of all other samplers must be multiples in power of 2 of the minimal sampling
rate.
Example
This example shows how to create/configure the Sampler of INSTANCE 1 with
RECEIVER as 1, RATE as 1024 and SIZE as 128 bytes.
Syntax Description
INSTANCE
The instance index, if, multiple samplers are associated with one interface. the
valid range is from 1 to 65535.
receiver
RECEIVER
(Optional) The receiver’s
INDEX
for this sampler. If it is not specified, the value is
0. The user cannot configure the value to 0. The maximum number is project
dependant.
sampling-rate
RATE
(Optional) The rate for packet sampling. The range is from 0 to 65536. A setting
of 0 means disabled. If not specified, the default vale is 0.
max-header-size
SIZE
(Optional) The maximum number of bytes that should be copied from sampled
packers. the range is from 18 to 256. If not specified the default value is 128.
Summary of Contents for DGS-6600 Series
Page 1: ...0 9 3 ...