The display cpu-defend statistics command displays statistics about packets sent to the CPU.
Parameter |
Description |
Value |
---|---|---|
packet-type packet-type |
Displays statistics about the specified type of protocol packets sent to the CPU. packet-type specifies the packet type.
|
The supported packet type depends on the device. NOTE:
The statistics about packets IPv6 FTP sent to the CPU is displayed when the packet type ftp is specified in the command. |
all |
Statistics about packets sent to the CPU on all switches in a stack are displayed if stacking is enabled. If stacking is disabled, statistics about packets sent to the CPU only on the local switch are displayed. If all and slot are not specified, CAR statistics about packets sent to the CPU on the master switch are displayed. |
- |
slot slot-id |
|
The value must be set according to the device configuration. |
Usage Scenario
The display cpu-defend statistics command displays statistics about packets sent to the CPU, including forwarded and discarded packets. This helps network administrators configure attack defense policies.
Precautions
If all and slot are not specified, CAR statistics about packets sent to the CPU on the master switch in a stack are displayed.
# Display statistics about packets sent to the CPU on the switch, for example, S5720-HI.
<HUAWEI> display cpu-defend statistics
Statistics on slot 0:
--------------------------------------------------------------------------------
Packet Type Pass(Packet/Byte) Drop(Packet/Byte) Last-dropping-time
--------------------------------------------------------------------------------
arp-miss 0 0 -
0 0
arp-reply 0 0 -
0 0
arp-request 0 0 -
0 0
......
# Display statistics about CAR packets sent to the CPU on the switch, for example, the S6720-LI.
<HUAWEI> display cpu-defend statistics
Statistics on mainboard:
--------------------------------------------------------------------------------
Packet Type Pass(Packet) Drop(Packet)
--------------------------------------------------------------------------------
8021x 0 0
arp-reply 0 0
arp-request 0 0
bpdu 0 0
bpdu-tunnel 0 0
capwap-ctrl 0 0
dhcp-client 0 0
dhcp-server 0 0
eth-ring 0 0
fib-hit 0 0
ftp 0 0
https 0 0
icmp 0 0
igmp 0 0
ip-cloud 0 0
lacp 0 0
ldt 0 0
lnp 0 0
nd 0 0
ospf 0 0
pim 0 0
pppoe 0 0
rip 0 0
sip 0 0
telnet 0 0
vrrp 0 0
----------------------------------------------------------------------
<HUAWEI> display cpu-defend statistics packet-type telnet Statistics on slot 0: -------------------------------------------------------------------------------- Packet Type Pass(Packet/Byte) Drop(Packet/Byte) Last-dropping-time -------------------------------------------------------------------------------- telnet 3625354 5612376421 2013-09-26 12:05:37 377036776 583687147k -------------------------------------------------------------------------------- Linkup statistics on slot 0: -------------------------------------------------------------------------------- Packet Type Pass(Packet/Byte) Drop(Packet/Byte) Last-dropping-time -------------------------------------------------------------------------------- telnet 0 0 - 0 0 --------------------------------------------------------------------------------
<HUAWEI> display cpu-defend statistics packet-type telnet
Statistics on mainboard:
--------------------------------------------------------------------------------
Packet Type Pass(Packet) Drop(Packet)
--------------------------------------------------------------------------------
telnet 0 0
--------------------------------------------------------------------------------
The preceding information is an example. The displayed packet type depends on the actual situation.
Item |
Description |
---|---|
Statistics on slot 0 |
CAR statistics about protocol packets sent to the CPU by a specified switch or stack. NOTE:
If any of the S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI functions as the master switch in a stack, packet statistics on the switch interfaces are not displayed. |
Statistics on mainboard |
CAR statistics about protocol packets sent to the CPU by a main control board. |
Linkup statistics on slot 0 |
CAR statistics about protocol packets sent to the CPU collected when the protocol connection is established. |
Packet Type |
Packet type. |
Pass(Packet/Byte) |
Number of forwarded packets or bytes. NOTE:
The S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI do not support collection of packet statistics by byte. |
Drop(Packet/Byte) |
Number of discarded packets or bytes. NOTE:
When the length exceeds 11 digits, the end of the value is displayed as k, indicating that the value is multiplied by 1000. When the length exceeds 14 digits, the end of the value is displayed as m, indicating that the value is multiplied by 1000000. When the length exceeds 17 digits, the end of the value is displayed as g, indicating that the value is multiplied by 1000000000. If the S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI function as standby and slave switches in a stack, they cannot collect the number of dropped packets. |
Last-dropping-time |
Last time statistics about dropped packets were collected. |