Table of Contents
14.3 Commands for Debugging and Diagnosis for Packets Received and Sent by CPU
14.3.1 clear cpu-rx-stat protocol
Parameters:
-
<protocol-type>: type of the protocol of the packet, including dot1x, stp, snmp, arp, telnet, http, dhcp, igmp, ssh, bgp, bgp4plus, rip, ripng, ospf, ospfv3, pim, pimv6, unknown-mcast, unknow-mcast6, and mld.
Command mode: Global Mode
Default: None.
Usage guide: This command clears the statistics of the CPU-received packets of the specified protocol type. This command should be used with the assistance of technical support.
Example: Clear the statistics of the CPU-received ARP packets.
active500EM(config)#clear cpu-rx-stat protocol arp
14.3.2 cpu-rx-ratelimit protocol
no cpu-rx-ratelimit protocol <protocol-type>
Function: Set the max rate of the CPU receiving packets of the protocol type. The no command sets the max rate to default.
Parameters:
-
<protocol-type>: type of the protocol, including dot1x, stp, snmp, arp, telnet, http, dhcp, igmp, ssh, bgp, bgp4plus, rip, ripng, ospf, ospfv3, pim, pimv6, unknown-mcast, unknow-mcast6, and mld.
-
<packets>: maximum rate that the CPU can receive packets of the specified protocol type. The valid range is from 1 to 2000 pps.
Command mode: Global Mode
Default: A different default rate is set for the different type of protocol
Usage guide: The rate limit set by this command has an effect on the CPU receiving packets. This command should be used with assistance from technical support.
Example: Set the rate of the ARP packets to 500pps.
active500EM(config)#cpu-rx-ratelimit protocol arp 500
14.3.3 cpu-rx-ratelimit queue-length
no cpu-rx-ratelimit queue-length <queue-id>
Function: Set the length of the specified queue. The no command restores to default.
Parameters:
-
<queue-id>: index of specified queue. The valid range is 0 to 7.
-
<qlen-value>: queue?s length, and the range of length is 0 to 500 packets with 0 indicating closing the queue.
Command mode: Global Mode
Default: 100pkts.
Usage guide: The queue length set by this command has an effect on CPU receiving packets. This command should be used with assistance from technical support.
Example: Set the length of queue 2 to 150 pkts.
active500EM(config)#cpu-rx-ratelimit queue-length 2 150
14.3.4 cpu-rx-ratelimit total
no cpu-rx-ratelimit total
Function: Set the total rate of the CPU receiving packets. The no command restores to default.
Parameters:
-
<packets>: maximum number of CPU receiving packets per second.
Command mode: Global Mode
Default: 1200 pps.
Usage guide: The total rate set by the command has an effect on CPU receiving packets. This command should be used with assistance from technical support.
Example: Set the total rate of the CPU receive packets to 1500pps.
active500EM(config)#cpu-rx-ratelimit total 1500
14.3.5 debug driver
Function: Enable the on-off display of information for the CPU receiving or sending packets. The no command disables the display.
Parameters:
-
receive | send: information of receiving or sending packets.
-
interface {<interface-list>| all}: Ethernet port number of the interface list, and all indicates all the Ethernet ports.
-
protocol {<protocol-type>| discard | all}: selects the protocol type of the packet, including snmp, telnet, http, dhcp, igmp, hsrp, arp, bgp, rip, ospf, pim, ssh, vrrp, ripng, ospfv3, pimv6, icmpv6, bgp4plus, unknown-mcast, unknown-mcast6, ttl0-2cpu, isis, dot1x, gvrp, stp, lacp, cluster, mld, vrrpv3, ra, uldp, lldp, and eapou. All selects all of the protocol types, and discard selects all the discarded packets.
-
detail: shows detailed information.
Command mode: Admin Mode
Default: None.
Usage guide: This command is used to debug and should be used with assistance from technical support.
Example: Enable the on-off for showing the receiving packets.
active500EM#debug driver receive
14.3.6 protocol filter
no protocol filter {protocol-type}
Function: Enable the corresponding treatment of the named protocol packets. The no command disables the filter.
Parameters:
-
<protocol-type>: protocol type, including arp, bgp, dhcp, dhcpv6, hsrp, http, igmp, ip, ldp, mpls, ospf, pim, rip, snmp, telnet, and vrrp.
Command mode: Admin Mode
Default: None.
Usage guide: This command enables the corresponding treatment of the named protocol packets, and it is used to debug and diagnose the switch. It is intended to be used in conjunction with the manufacturer?s technical personnel.
Example: Enable the treatment of the arp protocol packets.
active500EM#protocol filter arp
14.3.7 show cpu-rx protocol
Parameter:
-
<protocol-type>: protocol type of the packets. If no protocol type is specified, all packet statistics will display.
Command mode: Admin Mode and Configuration Mode
Default: None.
Usage guide: This command is used to debug and should be used with assistance from technical support.
Example: Show the statistics of CPU receiving ARP packets.
active500EM#show cpu-rx protocol arp Type Rate-limit TotPkts CurState arp 500 3 allowed
Return to Controller Wired CLI Table of Contents