Collecting CPU Packet Statistics
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.
- Enter the
pstat field-addcommand to configure the fields for which CPU packet statistics will be collected. The command can be entered more than once to configure multiple fields. - Enter the
pstat maxcommand to configure the maximum number fields to be used for collecting statistics. - Enter the
pstat startcommand to initiate the collection of CPU packet statistics. - Use the
show pstatcommand 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.
- Enter the
clear pstatcommand to clear the CPU packet statistics counters.