monitor capture clear
To clears the monitor capture (WireShark) buffer, use the monitor capture clear command in privileged
EXEC mode.
monitor capture {capture-name} clear
Syntax Description
The name of the capture whose buffer is to be cleared.
capture-name
Command Default
The buffer content is not cleared.
Command Modes
Privileged EXEC
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SE
Usage Guidelines
Use the monitor capture clear command either during capture or after the capture has stopped either because
one or more end conditions has been met, or you entered the monitor capture stop command. If you enter
the monitor capture clear command after the capture has stopped, the monitor capture export command
that is used to store the contents of the captured packets in a file will have no impact because the buffer has
no captured packets.
If you have more than one capture that is storing packets in a buffer, clear the buffer before starting a new
capture to avoid memory loss.
Examples
To clear the buffer contents for capture mycap:
Device# monitor capture mycap clear
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
495
monitor capture clear