Wireshark dumps packets to a file using a well-known format called .pcap, and is applied or enabled on individual interfaces.
You specify an interface in EXEC mode along with the filter and other parameters. The Wireshark application is applied only
when you enter a start command, and is removed only when Wireshark stops capturing packets either automatically or manually.
The following sections describe the components involved in Wireshark:
Capture Points
A capture point is the central policy definition of the Wireshark feature. It outlines the characteristics of a specific Wireshark
instance, such as the packets to capture, their sources, the actions to take with the captured packets, and the stopping conditions.
Capture points can be modified after creation but remain inactive until explicitly activated with a start command. This process is called activating or starting the capture point. Capture points are identified by name and can be
deactivated or stopped manually or automatically.
Multiple capture points can be defined, but only one can be active at a time. You need to stop one before you can start the
other.
In case of stacked systems, the capture point is activated on the active member. A switchover terminates any active packet
capture session and you have to restart the session.
Attachment Points
An attachment point is a point in the logical packet process path associated with a capture point. An attachment point, which
is an attribute of the capture point, is tested against capture point filters.
Packets that match the filters are copied and sent to the associated Wireshark instance. A specific capture point can associate
with multiple attachment points, but it is limited in mixing attachment points of different types. Some restrictions apply
when you specify attachment points of different types. Attachment points are directional (input or output or both) with the
exception of the Layer 2 VLAN attachment point, which is always bidirectional.
In case of stacked systems, the attachment points on all stack members are valid. EPC captures the packets from all the defined
attachment points. However these packets are processed only on the active member.
Filters
Filters are attributes of a capture point that identify and limit the subset of traffic traveling through the attachment point
of a capture point. These are copied and passed to Wireshark. Wireshark displays a packet, if it passes through an attachment
point, and all the filters associated with the capture point.
A capture point has the following types of filters:
-
Core system filter—The core system filter is applied by hardware, and its match criteria is limited by hardware. This filter
determines whether to copy the hardware-forwarded traffic to software for Wireshark purposes.
-
Capture filter—Wireshark applies the capture filter. The match criteria are more granular than those supported by the core
system filter. Packets that pass the core filter but fail the capture filter are copied. They are sent to the CPU/software,
but are discarded by the Wireshark process. The capture filter syntax matches that of the display filter.
-
Display filter—Wireshark applies the display filter. Its match criteria are similar to the criteria of the capture filter.
Packets that fail the display filter aren’t displayed.

Note
|
Wireshark does not use the syntax of the capture filter.
|
Core System Filter
You can specify core system filter match criteria by using the class map or ACL, or explicitly by using the CLI.

Note
|
When specifying CAPWAP as an attachment point, the core system filter is not used.
|
In some installations, obtaining authorization to modify the device configuration may lead to significant delays if the approval
process is lengthened. This can limit the ability of network administrators to monitor and analyze traffic. To address this
situation, Wireshark supports explicit specification of core system filter match criteria from the EXEC mode CLI. The disadvantage
is that the match criteria that you can specify is a limited subset of what class map supports, such as MAC, IP source and
destination addresses, ether-type, IP protocol, and TCP/UDP source and destination ports.
If you prefer to use configuration mode, you can define ACLs or have class maps refer capture points to them. Explicit and
ACL-based match criteria are used internally to construct class maps and policy maps.
ACL and class map configuration are part of the system and not aspects of the Wireshark feature.
Display Filter
With the display filter, you can direct Wireshark to further narrow the set of packets to display when decoding and displaying
from a .pcap file.
Actions
You can invoke Wireshark on live traffic or on a previously existing .pcap file. When invoked on live traffic, it can perform
four types of actions on packets that pass its display filters:
The decode and display action is applicable only when invoked on a .pcap file.
Default Wireshark Configuration
The table below shows the default Wireshark configuration.
| Feature |
Default Setting |
| Duration |
No limit |
| Packets |
No limit |
| Packet-length |
No limit (full packet) |
| File size |
No limit |
| Ring file storage |
No |
| Buffer storage mode |
Linear |