- Table of Contents
-
- 14-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-iNQA commands
- 04-iFIT commands
- 05-SRPM commands
- 06-NTP commands
- 07-PTP commands
- 08-Network synchronization commands
- 09-SNMP commands
- 10-RMON commands
- 11-NETCONF commands
- 12-CWMP commands
- 13-EAA commands
- 14-Process monitoring and maintenance commands
- 15-Sampler commands
- 16-Mirroring commands
- 17-NetStream commands
- 18-IPv6 NetStream commands
- 19-TCP connection trace commands
- 20-Performance management commands
- 21-Flow log commands
- 22-Information center commands
- 23-Packet capture commands
- 24-Flow monitor commands
- Related Documents
-
Title | Size | Download |
---|---|---|
15-Sampler commands | 46.91 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 samp1.
<Sysname> display sampler samp1
Sampler name: samp1
Mode: fixed; Packet-interval: 4; IsNpower: Y
Table 1 Command output
Field |
Description |
Sampler name |
Name of the sampler. |
Mode |
Sampling mode, including fixed mode and random mode. |
Packet-interval |
Sampling rate. |
IsNpower |
Whether the sampling rate is 2 to the nth power: · Y—Yes. · N—No. |
sampler
Use sampler to create a sampler.
Use undo sampler to delete a sampler.
Syntax
sampler sampler-name mode { fixed | 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.
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.
n-power: Specifies the sampling rate as 2 to the nth power.
rate: Specifies the sampling rate.
· If the n-power keyword is specified, the sampling rate is 2 to the nth power, where n is value for the rate argument in the range of 0 to 13. For example, if the rate argument is set to 3, one packet is selected from 8 (2 to the 3th power) packets in each sampling.
· If the n-power keyword is not specified, the sampling rate is the value for the rate argument in the range of 1 to 16320. For example, if the rate argument is set to 100, one packet is selected from 100 packets in each sampling.
Usage guidelines
This command takes effect on all cards.
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