Global Packet Tracing
Requirement:

The tracing feature is important for debugging the sequence of events that occur inside a process or protocol, for example message processing, state machine transitions, configuration change events, or timer events.



Solution:

Starting from ArubaOS 7.4.1, Mobility Access Switch introduces the following CLI commands to enable global and ACL-based packet tracing:

  • pkt-trace-global enable
  • pkt-trace acl <ACL-name> enable

 



Configuration:

Enabling Global Packet Tracing:

Execute the following CLI command to enable global packet tracing:
(host) # pkt-trace-global enable


Execute the following CLI command to disable global packet tracing:
(host) # pkt-trace-global disable

The following table describes the parameters of the pkt-trace-global enable command:

trace  --> Configures datapath trace options.

trace-hex-mask <tmask> --> Configures datapath trace mask in Hex format.

 

Sample Configuration:

The following sample pkt-trace global command configures trace mask for ACL functionality:
(host) # pkt-trace-global enable trace-hex-mask 0 trace acl-processing

Enabling ACL-based Packet Tracing

Execute the following CLI command to enable packet tracing for an ACL entry:
(host) # pkt-trace acl <ACL-name> enable

Execute the following CLI command to disable packet tracing for an ACL entry:
(host) # pkt-trace acl <ACL-name> disable

The following table describes the parameters of the pkt-trace acl enable command:

log: Writes packet trace data into log file.

trace: Configures datapath trace options.

trace-hex-mask <tmask>:  Configures datapath trace mask in Hex format.

 

Sample Configuration
The following sample pkt-trace acl command writes packet trace data into log file for the stated ACL bug:
(host) #pkt-trace acl acl-bug-58651 enable log trace acl-processing



Verification

Verifying Packet Tracing Configuration:


The following show command helps verify the packet tracing configuration:


(host) #show datapath debug trace-buffer
Datapath Trace Buffer Entries:
MacAddr( bb) 0x0 0x0 0x0 0x0 0xb86a1
0x6ac00000
MacAddr( bb) 0x0 0x0 0x0 0x0 0xb86a1

0x6ac00000
MacAddr( bb) 0x0 0x0 0x0 0x0 0xb86a1
0x6ac00000
CPDNSok( 4f) 0x0 0x1 0xa1045a2 0x37 0x1f
0x0
...

 

Note: The show command output may not completely imply that the packet tracing configuration is set. Enabling packet tracing might impact the throughput of the system.

Version history
Revision #:
2 of 2
Last update:
‎11-25-2015 03:59 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.