- Table of Contents
-
- 14-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-NTP commands
- 04-PTP commands
- 05-Network synchronization commands
- 06-SNMP commands
- 07-RMON commands
- 08-Event MIB commands
- 09-NETCONF commands
- 10-EAA commands
- 11-Process monitoring and maintenance commands
- 12-Sampler commands
- 13-Mirroring commands
- 14-NetStream commands
- 15-IPv6 NetStream commands
- 16-TCP connection trace commands
- 17-Fast log output commands
- 18-Flow log commands
- 19-Information center commands
- 20-GOLD commands
- 21-Packet capture commands
- Related Documents
-
Title | Size | Download |
---|---|---|
12-Sampler commands | 46.75 KB |
Sampler commands
display sampler
Use display sampler to display configuration information for a sampler.
Syntax
display sampler [ sampler-name ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-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.
chassis chassis-number slot slot-number: Specifies a card on a cluster member device. The chassis-number argument represents the member ID of the cluster member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays information for the global active MPU.
cpu cpu-number: Specifies a CPU by its number.
Examples
# Display the configuration information about sampler 256.
<Sysname> display sampler 256
Sampler name: 256
Mode: Fixed; Packet-interval: 8; 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 rate
undo sampler sampler-name
Default
No samplers exist.
Views
System view
Predefined user roles
network-admin
mdc-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.
rate: Specifies the sampling rate in the range of 1 to 16320. One packet is selected from the specified number of packets.
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