< Home

reset cpu-defend statistics

Function

The reset cpu-defend statistics command clears statistics on packets sent to the CPU.

Format

reset cpu-defend statistics [ packet-type packet-type ] [ all | slot slot-id ]

Parameters

Parameter Description Value

packet-type packet-type

Specifies the protocol type of packets. packet-type specifies the packet type.

  • If packet-type packet-type is specified, the statistics on the specified type of protocol packets are cleared.
  • If packet-type packet-type is not specified, the statistics on all protocol packets are cleared.

The supported packet type depends on the device.

all

This parameter indicates all switches in a stack if stacking is enabled, or the switch itself if stack is disabled.

If all and slot are not specified, the CAR statistics on the master switch in a stack are cleared.

-

slot slot-id

  • This parameter specifies the slot ID if stacking is not configured.
  • This parameter specifies the stack ID if stacking is enabled.

The value must be set according to the device configuration.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To view statistics on the packets sent to the CPU in a specified period, run the reset cpu-defend statistics command to clear existing statistics and run the display cpu-defend statistics command.

Precautions

The deleted packet statistics cannot be restored.

Example

# Clear statistics on BGP packets sent to the CPU.

<HUAWEI> reset cpu-defend statistics packet-type bgp slot 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >