Clearing Statistics of a Traffic Policy

This section describes the command for clearing statistics of a traffic policy.

Context

Once deleted, statistics cannot be restored. Therefore, use caution when deleting statistics.

Procedure

  • To clear the statistics of a traffic policy on an interface, run the reset traffic policy [ [ name ] policy-name ] statistics interface { interface-name | interface-type interface-number } [ vlan vlan-id | pe-vid pe-vid ce-vid ce-vid | vid vid | ce-vid ce-vid | vid vid ce-vid ce-vid ] { inbound | outbound } command in the user view.
  • To clear the statistics of a traffic policy on an bridge-domain, run the reset traffic policy statistics bridge-domain bdid { inbound | outbound } command in the user view.
  • To clear statistics about an AC-side traffic policy applied to a VPN instance, run the reset traffic policy [ name policy-name ] statistics { vsi vsi-instance-name [ ac-mode ] | vpn-instance vpn-instance-name } [ slot slot-id ] { inbound | outbound } command.
  • To clear flow CAR entries on a specific board or the device, run the reset flow-car [ { source-ip | destination-ip } ip-address ] slot slot-id or reset flow-car all command.
  • To clear flow CAR statistics about specific-direction traffic in a specific slot based on the source or destination IP address, run the reset flow-car statistics { source-ip | destination-ip } [ ip-address ] slot slot-id { inbound | outbound } command.
  • Run the reset user-queue statistics interface { interface-name | interface-type interface-number } { pe-vid pe-vid ce-vid ce-vid | vlan vlan-id } { inbound | outbound } [ policy policy-name ] classifier classifier-name or reset user-queue statistics bridge-domain bd-id { inbound | outbound } [ policy policy-name ] classifier classifier-name command to clear user queue statistics on a specified interface.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.