Layer 2 Switching Commands 640monitor capture (Privileged Exec)Use the monitor capture command to capture packets transmitted orreceived from the CPU. This facility captures switch control plane traffic andis useful in monitoring network control traffic and analyzing network security.Remote packet capture is not supported when the packets are received viaService Port.Syntaxmonitor capture {start [transmit | receive | all] | stop}• Transmit—Capture packets transmitted by the switch CPU.• Receive—Capture packets forwarded to the switch CPU.• All—Capture both transmitted and received packets.Default ConfigurationCapture is not enabled by default.By default, both transmitted and received packets are captured.Command ModesPrivileged Exec modeUser GuidelinesIn general, starting packet capture erases the previous capture buffercontents.Exampleconsole# monitor capture start allmonitor capture modeUse the monitor capture mode command to select the destination forcaptured packets transmitted or received from the CPU. This facility capturesswitch control plane traffic and is useful in monitoring network control trafficand analyzing network security.Use the no form of the command to return the capture mode to the default.