- Table of Contents
-
- 13-Network Management and Monitoring CR
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-NTP commands
- 04-SNMP commands
- 05-RMON commands
- 06-Event MIB commands
- 07-NETCONF commands
- 08-EAA commands
- 09-Process monitoring and maintenance commands
- 10-Sampler commands
- 11-Mirroring commands
- 12-NetStream commands
- 13-IPv6 NetStream commands
- 14-Information center commands
- 15-Flow log commands
- 16-GOLD commands
- 17-Packet capture commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-Sampler commands | 57.78 KB |
Sampler commands
display sampler
Use display sampler to display configuration information for a sampler.
Syntax
In standalone mode:
display sampler [ sampler-name ] [ slot slot-number ]
In IRF mode:
display sampler [ sampler-name ] [ chassis chassis-number slot slot-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.
slot slot-number: Specifies the slot number of the device, which is fixed at 0. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the device, which is fixed at 0. If you do not specify an IRF 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: Fixed; Packet-interval: 8; IsNpower:Y
Table 1 Command output
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
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.
n-power: Sets the sampling rate to 2 to the power of n.
rate: Specifies the sampling rate. If the n-power keyword is not specified, one packet is selected from rate packets in each sampling. The value range for rate argument is 1 to 65536. For example, if rate argument is set to 100, one packet is selected from 100 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. The value range for n-power keyword is 1 to 16. 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 fixed sampling mode. Set the sampling rate to 8.
<Sysname> system-view
[Sysname] sampler abc mode fixed packet-interval 8