R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
300
sampler
Use sampler to create a sampler.
Use undo sampler to delete a sampler.
Syntax
sampler sampler-name mode { fixed | random } packet-interval rate
undo sampler sampler-name
Default
No sampler exists.
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.
packet-interval rate: Specifies the sampling rate in the range of 1 to 65536.
Usage guidelines
This command takes effect on all cards. (MSR4000.)
Examples
# Create a sampler with the name abc in fixed sampling mode. Set the sampling rate to 8, which means
one packet out of eight packets is sampled.
<Sysname> system-view
[Sysname] sampler abc mode fixed packet-interval 8










