13-Network Management and Monitoring Command Reference

HomeSupportSwitchesH3C S10500X Switch SeriesReference GuidesCommand ReferencesH3C S10500X Switch Series Command References-Release7634Pxx-6W10013-Network Management and Monitoring Command Reference
12-Sampler commands
Title Size Download
12-Sampler commands 48.71 KB

Sampler commands

display sampler

Use display sampler to display configuration information for a sampler.

Syntax

In standalone mode:

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

In IRF mode:

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

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-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 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.)

Examples

# Display the configuration information about sampler 256.

<Sysname> display sampler 256

 Sampler name: 256

  Mode: fixed;  Packet-interval: 8; IsNpower: Y

Table 1 Command output

Field

Description

Sampler name

Name of the sampler.

Mode

Sampling mode, including fixed mode and random mode.

Packet-interval

Sampling rate.

IsNpower

Whether the sampling rate is 2 to the nth power:

·     Y—Yes.

·     N—No.

sampler

Use sampler to create a sampler.

Use undo sampler to delete a sampler.

Syntax

sampler sampler-name mode { fixed | random } packet-interval n-power rate

undo sampler sampler-name

Default

No samplers exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

sampler-name: Specifies a sampler by its name, a case-insensitive string of 1 to 31 characters.

fixed: Specifies the fixed sampling mode. A sampler in this mode selects the first packet per sampling.

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.

Usage guidelines

This command takes effect on all cards.

Examples

# Create sampler abc in fixed 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 fixed packet-interval  n-power 8

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
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
新华三官网