2-467
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
monitor capture [clear | export]
monitor capture [clear | export]
To clear capture buffer contents or to store the packets to a file, use the monitor capture [clear | export
filename] command.
monitor capture name [clear] [export filename]
Syntax Description
Defaults none
Command Modes Privileged EXEC mode
Command History
Usage Guidelines The clear option empties the capture buffer and the export option stores the packets in the capture buffer
to the file. You should use these commands only when the storage destination is a capture buffer. These
commands are usable either during capture or when it has stopped either because one or more end
conditions has been met or you entered the stop command. If you enter the clear command after the
capture has stopped, further export (or decode) and display commands have no impact because the
buffer has no packets.
Examples The following example shows how to associate or disassociate a capture file:
Switch# monitor capture mycap export bootflash:mycap.pcap
Switch# monitor capture mycap clear
name Specifies a capture point.
clear Clears all the packets in the capture buffer.
export filename Store all the packets in capture buffer to a .pcap file.
Release Modification
IOS XE 3.3.0SG/
15.1(1)SG
Support for this command was introduced on the Catalyst 4500 series switch.