Community Matters Blog

[ArubaOS 6.3] New Packet Capture Functionality in ArubaOS 6.3

Guru Elite Guru Elite
Guru Elite

The Aruba controller has had built-in packet capture functionality since day one. It supports streaming traffic to a host or saving a packet capture (.pcap) file to the controller for later analysis. The packet capture in ArubaOS 6.3 adds the capability to decide whether you want to capture a client's encrypted, or decrypted traffic, or both. It also adds the ability to see a tcpdump-style output of captured traffic from the controller without having to open a dedicated program to see a packet capture. Here is a demonstration:


Check to see if anything is being captured:

(3600-Controller) #show packet-capture

Active Capture Destination
Destination    Local-Filesystem

Active Capture (Controlpath)
Interprocess   Disabled   
Sysmsg         Disabled   
TCP            Disabled   
UDP            Disabled   
Other          Disabled   

Active Capture (Datapath)
Wifi-Client    Disabled   
Ipsec          Disabled   

 Next, I want to make sure that the data path packet capture buffer is zeroed out:


(3600-Controller) #packet-capture reset-pcap datapath-pcap

 Then I want to start a packet capture of a client's decrypted traffic, because I have a connectivity issue that I want to debug:


( #packet-capture datapath wifi-client e8:99:c4:92:c9:5b ?
all                     Capture both decrypted and encrypted packets
decrypted               Capture decrypted packets only
encrypted               Capture encrypted packets only

( #packet-capture datapath wifi-client e8:99:c4:92:c9:5b decrypted


 After generating traffic with the client, I want to take a look at and analyze the traffic without having to open another program, so I will use the "show packet-capture datapath-pcap" command.  I could have also done a "tar logs tech-support" from the commandline or the GUI and the datapath.pcap file of the packet capture would be waiting for me in that file.  


Let me see what is in the packet capture from the commandline:


( #show packet-capture datapath-pcap 

04:43:13.698113 IP > BOOTP/DHCP, Request from e8:99:c4:92:c9:5b, length 314  [DHCP FROM MY CLIENT]
04:43:13.728016 IP > BOOTP/DHCP, Reply, length 305 [DHCP REPLY FROM MY DHCP SERVER]
04:43:14.230764 arp who-has tell  [ARP for my default gateway]
04:43:14.231593 arp reply is-at 74:9d:dc:4b:08:41 [ARP reply from my default gateway]
04:43:14.234381 IP >  11571+ A? (32) [Resolving at my dns server]
04:43:14.265353 IP >  11571 5/0/0 A, A, A, A, A (112) [My dns server responding with dns records for]
04:43:14.269594 IP > S 3401926063:3401926063(0) win 65535 <mss 1460,sackOK,timestamp 48220 0,nop,wscale 6> [my client opening on port 80 on the ip address returned from dns server]
04:43:14.270227 IP > S 3020078374:3020078374(0) ack 3401926064 win 5792 <mss 1386,sackOK,timestamp 56102669 48220,nop,wscale 7> [ responding to the http request]

 That is just a shortened view of the tcpdump-style output for that client.


There are more features in packet capturing in ArubaOS 6.3,  and this is just an example of how you can be more productive doing packet captures in ArubaOS 6.3.   You don't have to open a separate packet capture program.  Since the packet capture is centralized, you can also do things that were once tricky before like capturing traffic of roaming clients and capturing decrypted traffic (used to need an ACL in a role to do that).


In short, this just another tool that Aruba has improved in ArubaOS 6.3.


Super Contributor I

Thanks for this write up. Is there a way to capture the 802.11 frames (including management and control) centrally in order to troubleshooting anomolous roaming issues?

Aruba Employee

@Ryan, the command "ap packet-capture" can capture 802.11 frames.

Occasional Contributor I

What version of AOS was this tested on? we are seeing active control path packet captures enabled across all controllers after moving from to code 


thanks and here is a sample output taken today:



(xxxwlc02) #show packet-capture

Active Capture Destination
Destination    Disabled

Active Capture (Controlpath)
Interprocess   Disabled
Sysmsg         Disabled
TCP            Disabled
UDP            Disabled
Other          Enabled

Active Capture (Datapath)
Wifi-Client    Disabled
Ipsec          Disabled

Frequent Contributor II

Nevermind, \var\log\oslog\datapath.pcap was hiding it.


Can you tell me how to copy the pcap off of the controller? I tried to tar logs tech-support and then tftp'ed those off but couldn't find the capture file.





Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Read all about it! If it’s happening now, it’s in the community.

Check out the latest blogs from your community team, the community experts and other industry sources.
Top Kudoed Posts