No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S1720, S2700, S5700, and S6720 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
QoS Compatible Commands

QoS Compatible Commands

count (upgrade-compatible command)

Function

Using the count command, you can enable the function of counting packets that match traffic classification rules.

By default, the counting function is disabled.

Format

count

Parameters

None

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

When there are many traffic classification rules on the switch, you can run the count command to count the specific traffic. The counting start time is the time when the policy is applied.

Currently, the switch counts packets rather than bytes.

Example

# Configure the traffic policy p1 so that the switch counts packets that flow through GigabitEthernet 0/0/1. After a period of time, the switch displays the traffic statistics.

<HUAWEI> system-view
[HUAWEI] traffic classifier c1
[HUAWEI-classifier-c1] if-match any
[HUAWEI-classifier-c1] quit
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] count
[HUAWEI-behavior-b1] quit
[HUAWEI] traffic policy p1
[HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[HUAWEI-trafficpolicy-p1] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] traffic-policy p1 inbound
[HUAWEI-GigabitEthernet0/0/1] display traffic policy interface gigabitethernet 0/0/1
  Interface: GigabitEthernet0/0/1
 
  Direction: Inbound
 
  Policy: p1
   Classifier: c1
     Rule(s) : if-match any
     Behavior: b1
      Count
        Matched : 10 (Packets)
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000178165

Views: 41671

Downloads: 1101

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next