515
Related commands
packet-capture local interface
packet-capture remote interface
packet-capture (on wired devices)
IMPORTANT:
To use the packet capture feature, you must install the feature image by using the boot-loader or
install command. For more information about the commands, see Fundamentals Command
Reference.
Use packet-capture to capture incoming packets on an interface.
Syntax
Save captured packets to a file:
packet-capture interface interface-type interface-number [ capture-filter capt-expression |
limit-captured-frames limit | limit-frame-size bytes | autostop filesize kilobytes | autostop
duration seconds | autostop files numbers | capture-ring-buffer filesize kilobytes |
capture-ring-buffer duration seconds | capture-ring-buffer files numbers ] * write filepath [ raw |
{ brief | verbose } ] *
Filter packet data to display:
packet-capture interface interface-type interface-number [ capture-filter capt-expression |
display-filter disp-expression | limit-captured-frames limit | limit-frame-size bytes | autostop
duration seconds ] * [ raw | { brief | verbose } ] *
Views
User view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies a Layer 2 or Layer 3 Ethernet interface by its
type and number.
capture-filter capt-expression: Specifies an expression to match packets to be captured, a
case-sensitive string of 1 to 256 characters. If you do not specify a capture filter expression, the
device captures all incoming packets on an interface.
display-filter disp-expression: Specifies an expression to match packets to be displayed, a
case-sensitive string of 1 to 256 characters. If you do not specify a display filter expression, the
device displays all captured packets.
limit-captured-frames limit: Stops capturing packets when the maximum number of captured
packets is reached. The limit argument sets the maximum number of packets to capture. The value