- Table of Contents
-
- 17-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-NTP commands
- 04-PoE commands
- 05-SNMP commands
- 06-RMON commands
- 07-Event MIB commands
- 08-NETCONF commands
- 09-SmartMC commands
- 10-CWMP commands
- 11-EAA commands
- 12-Process monitoring and maintenance commands
- 13-Sampler commands
- 14-Mirroring commands
- 15-NetStream commands
- 16-IPv6 NetStream commands
- 17-sFlow commands
- 18-Performance management commands
- 19-Flow log commands
- 20-Information center commands
- 21-Packet capture commands
- 22-Cloud connection commands
- Related Documents
-
Title | Size | Download |
---|---|---|
13-Sampler commands | 47.86 KB |
Sampler commands
display sampler
Use display sampler to display configuration information for a sampler.
Syntax
In standalone mode:
display sampler [ sampler-name ]
In IRF mode:
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 an IRF member device by its member ID. If you do not specify a member device, this command displays sampler configuration information for the master device. (In IRF mode.)
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, 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 not specified, one packet is selected from rate packets in each sampling. If the n-power keyword is specified, one packet is selected from 2 to the rateth power packets in each sampling. For example, if n-power 8 is specified, one packet is selected from 256 (2 to the 8th power) packets in each sampling.
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