< Home

display traffic-policy

Function

The display traffic-policy command displays the configuration of a traffic policy rule.

Format

display traffic-policy rule { all | name rule-name } [ slot slot-id cpu cpu-id ]

Parameters

Parameter Description Value

all

Displays configurations of all traffic policy rules.

-

name rule-name

Displays configurations of the specified traffic policy rule.

The traffic policy rule must already exist.

slot slot-id

Specifies the slot ID of the SPU. Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter.

-

cpu cpu-id

Specifies the CPU ID. Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display configurations of traffic policy rule traffic_rule.

<sysname> display traffic-policy rule name traffic_rule
  (3 times matched)                                                             
  rule name traffic_rule                                                        
    application app QQ_IM                                                       
    application app Skype_VoIP                                                 
    application app 1Ting                                                       

# Display configurations of all traffic policy rules.

<sysname> display traffic-policy rule all
Total:2                                                                         
RULE ID RULE NAME                      STATE      ACTION     HITS             
------------------------------------------------------------------------------- 
1       test                           disable    qos        0     
2       traffic_rule                   enable     qos        3     
        default                        enable     no-qos     0     
Table 1 Description of the display traffic-policy all command output

Item

Description

Total

Total number of traffic policy rules, excluding the default ones

RULE ID

ID of the traffic policy rule. The ID of a deleted policy will be retained and not used by any new policy.

RULE NAME

Name of the traffic policy rule

STATE

Status of the traffic policy rule:

  • enable
  • disable

ACTION

Action of the traffic policy rule:

  • no-qos: does not limit traffic
  • qos: limits traffic

HITS

Number of times a traffic policy rule is matched

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >