Capture packet interface – Brocade Network OS Command Reference v4.1.0 User Manual
Page 96
58
Network OS Command Reference
53-1003115-01
capture packet interface
2
capture packet interface
Enables the capture of packet information on an interface, for display on the switch itself or for
storage in an automatically generated file.
Synopsis
capture packet {interface} {all | fortygigabitethernet rbridge-id/slot/port | gigabitethernet
rbridge-id/slot/port | tengigabitethernet rbridge-id/slot/port} {direction {both | rx | tx} {filter {l2 |
l3 | all}
Operands
interface
Selects an interface (required).
all
Selects all interfaces.
fortygigabitethernet
Selects a 40-GbE interface.
gigabitethernet
Selects a 1-GbE interface.
tengigabitethernet
Selects a 10-GbE interface.
rbridge-id/slot/port
Selects the RBridge ID, slot, and port of the respective interface.
direction
Selects a direction (required).
both
Selects traffic in both transmit and receive directions.
rx
Selects received traffic.
tx
Selects transmitted traffic.
filter
Selects the packet types to be filtered (required).
l2
Filters only Layer 2 packets to the CPU.
l3
Filters only Layer 3 packets to the CPU.
all
Filters all packets to the CPU, including transit packets if an access control
list (ACL) is enabled (Refer to the Usage Guidelines.)
Defaults
None
Command Modes
Privileged EXEC mode
Description
Use this command to capture packet information on an interface. This can provide significant help
in debugging, especially for Layer 2 TRILL and Layer 3 packets. Captured packets are stored in a
circular buffer, and they are also written to an automatically generated “pktcapture.pcap” file,
which can store up to 1500 K of data in flash memory (the equivalent of approximately 10k
packets, each having an average size of 100 bytes). Once this file is full, it is saved at *_old.pcap
and data are written to a new pktcapture.pcap file. These files can be exported and viewed
through a packet analyzer such as Wireshark.
NOTE
Up to 100 packets per interface can be captured. Once the buffer is filled, the oldest packets are
replaced with the most recent.
Usage Guidelines
This command is supported in VCS and standalone modes. This command can be entered on any
RBridge in a Brocade VCS Fabric.
To disable packet capture globally, use the no capture packet all command.