Configuration procedure

To configure a sampler:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a sampler.

sampler sampler-name mode fixed packet-interval rate

The sampling rate is calculated by using the formula 2 to the nth power, where n is the rate argument. For example:

  • If the rate argument is 8, one packet out of 256 packets (2 to the 8th power) is sampled in each sampling.

  • If the rate argument is 10, one packet out of 1024 packets (2 to the 10th power) is sampled.