< Home

display pcp-policy

Function

The display pcp-policy command displays PCP policy rule configurations.

Format

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

Parameters

Parameter Description Value
all Displays the configurations of all PCP policy rules. -
name rule-name Displays the configurations of a specified PCP policy rule. The policy rule must exist.
slot slot-id Specifies the slot number. 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 the configurations of all PCP policy rules.

<sysname> display pcp-policy rule all
Total:3
RULE ID  RULE NAME                  STATE        ACTION       HITS   
-----------------------------------------------------------------------
1        test                       disable      no-nat          0    
2        abc                        enable       nat             5    
0        default                    enable       no-nat          0    
----------------------------------------------------------------------
Table 1 Description of the display pcp-policy all command output
Item Description

Total

Total number of PCP policy rules

RULE ID

ID of the PCP policy rule

RULE NAME

Name of a PCP policy rule

STATE

PCP policy rule status:

  • enable
  • disable

ACTION

PCP policy rule action:

  • no-nat: disables NAT.
  • nat: enables NAT.

HITS

Number of times traffic matches a PCP policy rule

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