- Table of Contents
- 
                        - 21-Network Management and Monitoring Command Reference
- 00-Preface
- 01-Ping and tracert commands
- 02-System debugging commands
- 03-NQA commands
- 04-iNQA commands
- 05-NTP commands
- 06-SNMP commands
- 07-RMON commands
- 08-Event MIB commands
- 09-CWMP commands
- 10-Sampler commands
- 11-Mirroring commands
- 12-NetStream commands
- 13-IPv6 NetStream commands
- 14-Cloud connection commands
- 15-Packet capture commands
- 16-sFlow commands
- 17-IP traffic statistics collection commands
 
- Related Documents
- 
                        
| Title | Size | Download | 
|---|---|---|
| 10-Sampler commands | 46.43 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 sampler configuration 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: N
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 | 
 | 
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
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. One packet is selected from rate packets in each sampling.
Usage guidelines
This command takes effect on all cards.
Examples
# Create sampler abc in random sampling mode. Set the sampling rate to 8 to select one packet from 8 packets in each sampling.
<Sysname> system-view
[Sysname] sampler abc mode random packet-interval 8
 Login
Login
