- Table of Contents
-
- 13-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System Maintenance and Debugging Commands
- 02-NQA Commands
- 03-NTP Commands
- 04-Clock Monitoring Commands
- 05-IPC Commands
- 06-SNMP Commands
- 07-RMON Commands
- 08-CWMP Commands
- 09-Sampler Commands
- 10-Mirroring Commands
- 11-Protocol Packet Statistics Commands
- 12-sFlow Commands
- 13-Information Center Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
09-Sampler Commands | 68.22 KB |
|
NOTE: The switch operates in IRF or standalone (the default) mode. For more information about the IRF mode, see IRF Configuration Guide. |
display sampler
Syntax
Standalone mode:
display sampler [ sampler-name ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]
IRF mode:
display sampler [ sampler-name ] [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
sampler-name: Specifies the sampler name, a case-insensitive string of 1 to 32 characters.
slot slot-number: Displays sampler information of the specified card. The slot-number argument specifies a card by its slot number. Use this option when your switch is operating in standalone (the default) mode.
chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode. For more information about IRF, see IRF Configuration Guide.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display sampler command to view configuration and running information about a sampler.
Examples
# Display the configuration and running information about the specified sampler.(standalone mode)
<Sysname> display sampler abc slot 1
Sampler name: abc
Index: 1, Mode: Fixed, Packet-interval: 8
# Display the configuration and running information about the specified sampler.(IRF mode)
<Sysname> display sampler 256 chassis 1 slot 1
Sampler name: 256
Index: 1, Mode: Fixed, Packet-interval: 8
Table 1 Output description
Field |
Description |
Sampler name |
Name of the sampler |
Index |
Index number identifying a sampler |
Mode |
Sampling mode, which can be fixed mode. |
Packet-interval |
Sampling rate |
sampler
Syntax
sampler sampler-name mode fixed packet-interval rate
undo sampler sampler-name
View
System view
Default level
2: System level
Parameters
sampler-name: Assigns the name for the sampler, a case-insensitive string of 1 to 32 characters.
fixed: Specifies the fixed sampling mode, in which the first packet is selected per sampling.
packet-interval rate: Specifies the sampling rate, which equals the 2 to the power of rate. The value is in the range of 1 to 10.
Description
Use the sampler command to create a sampler. Up to eight samplers can be created on the switch.
Use the undo sampler command to delete a sampler.
Before deleting a sampler, remove the traffic mirroring or port mirroring that references the target sampler. Otherwise, the deleting of the sampler will fail. For more information about traffic mirroring, see ACL and QoS Configuration Guide. For more information about port mirroring, see Network Management and Monitoring Configuration Guide.
Examples
# Create a sampler with the name abc in fixed sampling mode. Set the sampling rate to 8, which means one packet out of 256 packets (2 to the power of 8) is sampled.
<Sysname> system-view
[Sysname] sampler abc mode fixed packet-interval 8