357
n-power: Specifies the sampling rate. If n-power is not specified, the sampling rate is the value of
the rate argument. For example, if the rate argument is set to 100, one packet is selected from 100
packets in each sampling. The value range is 1 to 65536. If n-power is not specified, the sampling
rate is 2 to the nth power, where n is value of the rate argument. The value range is 1 to 16. For
example, if the rate argument is set to 8, one packet is selected from 256 (2 to the 8th power) packets
in each sampling.
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