R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)

225
Sampler configuration commands
display sampler
Use display sampler to view configuration and running information about a sampler.
Syntax
display sampler [ sampler-name ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
sampler-name: Specifies the sampler name, a case-insensitive string of 1 to 32 characters.
|: 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.
Examples
# Display the configuration and running information about the specified sampler.
<Sysname> display sampler 256
Sampler name: 256
Index: 1, Mode: Fixed, Packet-interval: 8
Packet counter: 0, Random number: 1
Total packet number (processed/selected): 256/1
Table 47 Command output
Field Descri
p
tion
Sampler name Name of the sampler.
Index Index number identifying a sampler.
Mode Sampling mode, including fixed mode and random mode.
Packet-interval Sampling rate.
Packet counter Counts the number of packets that have been received for one sampling.