The display cpu-defend rate command displays the rate of sending protocol packets to the CPU.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
Parameter |
Description |
Value |
---|---|---|
packet-type packet-type |
Specifies a packet type. |
The supported packet type depends on the device. |
all |
Indicates all switches in a stack if stack is enabled, or the switch itself if stack is disabled. |
- |
slot slot-id |
|
The value must be set according to the device configuration. |
You can run the display cpu-defend rate command to view the rate of sending protocol packets to the CPU when checking the configuration of an attack defense policy. In this way, you can determine which type of protocols may attack the CPU based on the rate.
To ensure normal operation of other services and protect the CPU, the rate of incremental protocol packets is calculated only in a specified period after you run the display cpu-defend rate command and displayed on the terminal. After you run this command, a message is displayed to wait for a while.
# Display the rate of ARP Reply packets sent from the switch to the CPU.
<HUAWEI> display cpu-defend rate packet-type arp-reply slot 0 Info: Please wait for a moment.... Cpu-defend rate on slot 0: ------------------------------------------------------------------------------- Packet Type Pass(bps) Drop(bps) Pass(pps) Drop(pps) ------------------------------------------------------------------------------- arp-reply 49504 86496 91 159 -------------------------------------------------------------------------------
Item |
Description |
---|---|
Packet Type |
Packet type. |
Pass(bps) |
Number of forwarded bits within one second. |
Drop(bps) |
Number of discarded bits within one second. |
Pass(pps) |
Number of forwarded packets within one second. |
Drop(pps) |
Number of discarded packets within one second. |