- Table of Contents
-
- 11-Network Management and Monitoring Command Reference
- 00-Preface
- 01-Sampler commands
- 02-NetAnalysis commands
- 03-EPA commands
- 04-sFlow commands
- 05-System maintenance and debugging commands
- 06-NQA commands
- 07-iNQA commands
- 08-NTP commands
- 09-PTP commands
- 10-SNMP commands
- 11-RMON commands
- 12-NETCONF commands
- 13-CWMP commands
- 14-EAA commands
- 15-Process monitoring and maintenance commands
- 16-Mirroring commands
- 17-Information center commands
- 18-Packet capture commands
- 19-VCF fabric commands
- 20-Cloud connection commands
- 21-SQA commands
- 22-eMDI commands
- 23-TCP connection trace commands
- 24-NetStream commands
- Related Documents
-
| Title | Size | Download |
|---|---|---|
| 01-Sampler commands | 46.73 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 the slot number of the device, which is fixed at 1.
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. In the current software version, only the random mode is supported. . |
|
Packet-interval |
Sampling rate. |
|
IsNpower |
Y indicates that the sampling rate is 2 to the nth power. |
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. The sampling rate is 2 to the nth power, where n is the 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. The value range for the rate argument is 0 to 14. In the current software version, the maximum value supported is 8. When the value for this argument is great, the actual sampling rate has certain errors. The greater the value, the greater the errors.
Examples
# Create sampler abc in random sampling mode. Set the sampling rate to 8 to select one packet from 256 packets in each sampling.
<Sysname> system-view
[Sysname] sampler abc mode random packet-interval n-power 8
