Reference Guide

Table Of Contents
Dell PowerConnect ArubaOS 6.0 Command Line Interface | Reference Guide packet-capture | 349
packet-capture
packet-capture [other {disable | enable}] [sysmsg {all | disable | <opcodes>]
[tcp {all | disable | <ports>}] [udp {all | disable | <ports>]
]
Description
Use this command to enable or disable packet capturing and set packet capturing options for a single packet
capture session.
Syntax
Usage Guidelines
This command applies to control path packets; not datapath packets. Packets can be retrieved through the tar log
command; look for the filter.pcap file. This command activates packet capture options on the current switch.
They are not saved and applied across switches.
If you do want to enable a packet capture session without setting values that can be saved and used for another
session, use the command packet-capture. The related command packet-capture-defaults lets you define a set of
packet capture options that will run every time you enable the packet capture feature.
Example
The following command enables packet capturing for debugging a wireless WEP station doing VPN. This
example uses the following parameters and values:
z Station up/down: sysmsg opcode 30
z WEP key plumbing: sysmsg opcode 29
z DHCP: sysmsg opcode 90
z IKE: UDP port 500 and 4500
z Layer 2 Tunneling Protocol (L2TP): UDP port 1701
(host) #packet-capture sysmsg 30,29,90 udp 500,4500,1701,1812,1645
Command History
This command was introduced in ArubaOS 2.3.
Parameter Description Default
other Enable or disable all other types of packets. Specify up to ten comma-
separated opcodes to capture; use all to sniff all opcodes; use
disable to bypass the all setting. All CLI ports are always skipped.
Enabled
sysmsg Enable or disable internal messaging packets. Disabled
tcp ports Enable or disable TCP packet capturing. Specify up to ten comma-
separated ports to capture; use all to sniff all TCP ports; use disable
to bypass the all setting. All CLI ports are always skipped.
Disabled
udp ports Enable or disable UDP packet capturing. Specify up to ten comma-
separated ports to capture; use all to sniff all UDP ports; use disable
to bypass the all setting. All CLI ports are always skipped.
Disabled