Part 12 - System Monitoring

07-Sampler Commands

Chapters Download  (19.04 KB)

07-Sampler Commands


Sampler Configuration Commands

Sampler Configuration Commands

display sampler

Syntax

display sampler [ sampler-name ] [ slot slot-number ]

View

Any view

Default Level

1: Monitor level

Parameters

sampler-name: Specifies the sampler name, a string of up to 32 characters.

slot slot-number: Displays sampler information of the specified device. The slot-number is the ID of a member device of the current IRF virtual device, which you can display with the display irf command. The slot number range depends on the numbering rules and the number of member devices of the current IRF virtual device. If no IRF virtual device exists, the slot-number argument is the current device number.

Description

Use the display sampler command to view configuration and status information about a sampler.

Examples

# Display the configuration and status information about the specified sampler on a switch.

<Sysname> display sampler abc slot 1

Sampler name: abc

  Index: 1,  Mode: Fixed,  Packet-interval: 8

Table 1-1 display sampler command output description

Field

Description

Sampler name

Name of the sampler

Index

Sampler index

Mode

Sampling 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: Specifies the sampler name, a case insensitive string of 1 to 32 characters.

fixed: Sets the sampling mode to fixed.

rate: Specifies the sampling interval, which means one packet out of the two to the power of rate packets is sampled. The value is in the range of 1 to 16.

Description

Use the sampler command to create or modify a sampler.

Use the undo sampler command to delete a sampler.

Examples

# Create a fixed sampler with the name abc. Set the sampling interval to 8, which means one packet out of 256 packets (two to the power of eight) is sampled.

<Sysname> system-view

[Sysname] sampler abc mode fixed packet-interval 8

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.