403
Default
No samplers exist.
Views
System view
Predefined user roles
network-admin
Parameters
sampler-name
: Specifies a sampler by its name, a case-insensitive string of 1 to 31 characters.
fixed
: Specifies the fixed sampling mode. A sampler in this mode selects the first packet per
sampling.
random
: Specifies the random sampling mode. A sampler in this mode randomly selects a packet
out of a group of packets. Which packet is selected for each sampling varies.
rate
: Specifies the sampling rate. The value range for this argument is 1 to 65536.
n-power
: Sets the sampling rate to 2 to the power of n.
Usage guidelines
This command takes effect on all cards. (Distributed devices in IRF or standalone mode.)
Examples
# Create sampler
abc
in fixed sampling mode. Set the sampling rate to 8.
<Sysname> system-view
[Sysname] sampler abc mode fixed packet-interval 8