Specifications

2-380
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
monitor capture [clear | export]
monitor captur e [clear | ex port]
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 n one
Command Modes Privileged EXE C mode
Usage Guidelines The clear option e mpties the capture buffer and the ex po rt option stores the packets in the capture buffer
to the file. You shoul d use t hese com mands onl y when the stor age des tination is a captu re buffer. These
commands are usable either durin g capture or when it has stopp ed either because one or more end
conditions has been met or you en tered the stop command. If you enter the clear command after the
capture has s topped, f urther exp ort (or decode) and display commands have no impact because the
buffer has no packets.
Examples The following example shows how to associa te or disassociate a captu re 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.