17-Network Management and Monitoring Command Reference

HomeSupportSwitchesS12500R SeriesReference GuidesCommand ReferencesH3C S12500R-48Y8C&S12500R-48C6D Switch Router Command References(R52xx)-6W10217-Network Management and Monitoring Command Reference
09-Sampler commands
Title Size Download
09-Sampler commands 47.23 KB

Sampler commands

display sampler

Use display sampler to display configuration information for a sampler.

Syntax

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

Views

Any view

Predefined user roles

network-admin

network-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 1.

Examples

# 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

Field

Description

Sampler name

Name of the sampler.

Mode

Sampling mode. In the current software version, only the random mode is supported. .

Packet-interval

Sampling rate.

IsNpower

Whether the sampling rate is 2 to the nth power: Y for Yes.

sampler

Use sampler to create a sampler.

Use undo sampler to delete a sampler.

Syntax

sampler sampler-name mode random packet-interval n-power rate

undo sampler sampler-name

Default

No samplers exist.

Views

System view

Predefined user roles

network-admin

Parameters

sampler-name: Specifies a sampler by its name, a string of 1 to 31 characters. In versions earlier than Release 5212P06, the sampler name is case insensitive. In Release 5212P06 and versions, the sampler name is case sensitive. When other service modules reference a sampler, the sampler name is case-sensitive.

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. One packet is selected from 2 to the rateth power packets in each sampling. For example, if n-power 8 is specified, one packet is selected from 256 (2 to the 8th power) packets in each sampling.

Usage guidelines

If you execute this command multiple times and specify different sampler names, multiple samplers are configured. If only the letter case of sampler names is different, the sampler name in the first configuration is used, and the sampling rate in the most recent configuration is used.

Examples

# Create sampler abc in random sampling mode. Set the sampling rate to 8 to select one packet from 256 packets in each sampling.

<Sysname> system-view

[Sysname] sampler abc mode random packet-interval  n-power 8

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网