Collecting CPU Packet Statistics

You can collect statistics on packets destined for the CPU. These statistics can be used to help troubleshoot high CPU issues.

Packet statistics are collected for a set of specified fields, such as Layer 2 destination MAC address, Layer 2 MAC type, Layer 2 source address, and inbound Ethernet port. For packets matching the specified fields, the packet information is copied to a hash table.

CPU packet statistics can be collected for the units in a stacking system. Every 30 seconds the details for queues, ports, and packet statistics are synced. Every 60 seconds the queues and ports history is synced.

Complete the following steps to configure and display CPU packet statistics.

  1. Enter the pstat field-add command to configure the fields for which CPU packet statistics will be collected. The command can be entered more than once to configure multiple fields.
    device(config)# pstat field-add l2-dest-mac
    device(config)# pstat field-add input-port
  2. Enter the pstat max command to configure the maximum number fields to be used for collecting statistics.
    device(config)# pstat max 3
    
  3. Enter the pstat start command to initiate the collection of CPU packet statistics.
    device(config)# pstat start
    
    The pstat stop command can be used to stop the collecting of packet statistics.
  4. Use the show pstat command to display the CPU packet statistics counters.
    device(config)#show pstat 11
    
    input-port        l2-dest-mac       l2-dest-mac-type  Count
    --------------------------------------------------------------
    mgmt1             0100.5e00.0002    Multicast         19
    11/1/7            0180.c200.0000    Multicast         10
    2/1/7             0180.c200.000e    Multicast         1
    11/1/7            0180.c200.000e    Multicast         1
    mgmt1             0180.c200.0000    Multicast         10
    mgmt1             cf4e.2445.0400    Multicast         19
    mgmt1             778e.f8d4.00c0    Multicast         63
    mgmt1             ffff.ffff.ffff    Broadcast         23
    --------------------------------------------------------------
    
    Number of Entries = 8
    The following commands can also be used to display CPU packet statistics:
    • show pstat hist: Displays per-second CPU packet statistics for the specified period of time.
    • show pstat dump: Displays the contents of the CPU queue and port status.
    • show pstat status: Displays the fields specified for collecting CPU packet statistics and whether CPU packet statistics collection is enabled.

    Refer to the RUCKUS FastIron Command Reference for more information.

  5. Enter the clear pstat command to clear the CPU packet statistics counters.