- Table of Contents
-
- 11-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-NTP commands
- 04-SNMP commands
- 05-RMON commands
- 06-Event MIB commands
- 07-NETCONF commands
- 08-EAA commands
- 09-Process monitoring and maintenance commands
- 10-Sampler commands
- 11-Mirroring commands
- 12-NetStream commands
- 13-IPv6 NetStream commands
- 14-sFlow commands
- 15-TCP connection trace commands
- 16-Performance management commands
- 17-Information center commands
- 18-GOLD commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-Sampler commands | 46.48 KB |
Sampler commands
display sampler
Use display sampler to display configuration information for a sampler.
Syntax
display sampler [ sampler-name ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
sampler-name: Specifies a sampler by its name, a case-insensitive string of 1 to 31 characters. If you do not specify a sampler, this command displays configuration information for all samplers.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays information for the active MPU.
Examples
# Display the configuration information about sampler 256.
<Sysname> display sampler 256
Sampler name: 256
Mode: random; Packet-interval: 8; IsNpower: Y
Table 1 Command output
Field |
Description |
Sampler name |
Name of the sampler. |
Mode |
Sampling mode. Only the random mode is supported in the current software version . |
Packet-interval |
Sampling rate. |
IsNpower |
Whether the sampling rate is 2 to the nth power: · Y—Yes. · N—No. Only Y is supported in the current software version. |
sampler
Use sampler to create a sampler.
Use undo sampler to delete a sampler.
Syntax
sampler sampler-name mode random packet-interval n-power rate
undo sampler sampler-name
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.
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.
n-power: Specifies the sampling rate as 2 to the nth power.
rate: Specifies the sampling rate in the range of 1 to 15. The sampling rate is 2 to the nth power, where n is value of the rate argument. 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. If the rate argument is set to 10, one packet is selected from 1024 (2 to the 10th power) packets in each sampling.
Usage guidelines
This command takes effect on all cards.
Examples
# Create sampler abc in random sampling mode. Specify the sampling rate as 2 to the 8th power.
<Sysname> system-view
[Sysname] sampler abc mode random packet-interval n-power 8