Commands For Debugging And Diagnosis For Packets Received And Sent By Cpu

14.3 Commands for Debugging and Diagnosis for Packets Received and Sent by CPU

 

14.3.1 clear cpu-rx-stat protocol

Command: clear cpu-rx-stat protocol [<protocol-type>] Function: Clear the statistics of the CPU-received packets of the protocol type.
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

Command: cpu-rx-ratelimit protocol <protocol-type><packets>
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

Command: cpu-rx-ratelimit queue-length <queue-id><qlen-value>
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

Command: cpu-rx-ratelimit total <packets>
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

Command: debug driver {receive | send} [interface {<interface-name> | all}] [protocol {<protocol-type> | discard | all}] [detail] no debug driver {receive | send}
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

Command: protocol filter {protocol-type}
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

Command: show cpu-rx protocol [ <protocol-type>] Function: Display the statistics of the packets of the specified protocol type received by the CPU.
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