HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference

193
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, in which the first packet is selected per sampling.
random: Specifies the random sampling mode, in which a packet is randomly selected out of a group of
packets and which packet is selected for each sampling varies.
rate: Specifies the sampling rate in the range of 1 to 65536. The sampling rate uses the rate value.
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 8 packets is sampled.
<Sysname> system-view
[Sysname] sampler abc mode fixed packet-interval 8