- Table of Contents
- 11-Network Management and Monitoring Command Reference
- 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-CWMP commands
- 09-EAA commands
- 10-Process monitoring and maintenance commands
- 11-Sampler commands
- 12-Mirroring commands
- 13-NetStream commands
- 14-IPv6 NetStream commands
- 15-sFlow commands
- 16-Information center commands
- 17-GOLD commands
- 18-Packet capture commands
- 19-VCF fabric commands
- Related Documents
|11-Sampler commands||48.46 KB|
Use display sampler to display configuration information for a sampler.
In standalone mode:
display sampler [ sampler-name ] [ slot slot-number ]
In IRF mode:
display sampler [ sampler-name ] [ chassis chassis-number slot slot-number ]
Predefined user roles
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. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on 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 card. If you do not specify a card, this command displays sampler configuration information for the global active MPU. (In IRF mode.)
# 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
Name of the sampler.
Whether the sampling rate is 2 to the nth power:
Use sampler to create a sampler.
Use undo sampler to delete a sampler.
sampler sampler-name mode random packet-interval n-power rate
undo sampler sampler-name
No samplers exist.
Predefined user roles
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 15.
This command takes effect on all cards.
# Create sampler abc in random sampling mode. Set the sampling rate to 8 to select one packet form 256 (2 to the 8th power) in each sampling.
[Sysname] sampler abc mode random packet-interval n-power 8