pstat field-add
-
- Last UpdatedSep 23, 2020
- 1 minute read
Specifies the fields for which statistics on the number of packets sent to the CPU will be collected.
CPU packets statistics are not collected by default.
input-port
| Collects CPU packet statistics based on the inbound Ethernet port.
|
l2-dest-mac
| Collects CPU packet statistics based on the Layer 2 destination MAC address.
|
l2-dest-mac-type
| Collects CPU packet statistics based on the Layer 2 destination MAC address type: broadcast, unicast, or multicast.
|
l2-source-mac
| Collects CPU packet statistics based on the Layer 2 source MAC address.
|
Global configuration mode
The system can be configured to collect statistics on packets destined for the CPU based based on a set of specified fields. The pstat field-add command specifies the fields for which packets will be counted.
device# configure terminal
device(config)# pstat field-add l2-dest-mac
device(config)# pstat field-add input-port
device(config)# pstat field-add l2-dest-mac-type
device(config)# pstat max 3
device(config)# pstat start
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
Release version | Command history |
---|---|
08.0.90 | This command was introduced. |