1-6
Cisco ASA Series CLI Configuration Guide
Chapter 1 Troubleshooting
Capturing Packets
hostname (cfg-cluster)#
cluster exec copy
/
pcap capture
:
cap_name
tftp
://
location
/
path
/
filename
.
pcap
Multiple PCAP files, one from each unit, are copied to the TFTP server. The destination capture file
name is automatically attached with the unit name, such as filename_A.pcap, filename_B.pcap, and so
on. In this example, A and B are cluster unit names. A different destination name is generated if you add
the unit name at the end of the filename.
To enable cluster-wide capture on a specified interface, you can add the
cluster exec
keywords in front
of each of the commands shown in the examples. These
capture
commands can only be replicated from
the master unit to the slave units. However, you can still configure a capture on the specified interface
for the local unit using any of these
capture
commands.
Examples
The following example shows how to create a cluster-wide LACP capture:
hostname (config)#
cluster exec
capture lacp type lacp interface gigabitEthernet0/0
The following example shows how to create a capture for control path packets in the clustering link:
hostname (config)#
capture cp interface cluster match udp any eq 49495 any
hostname (config)#
capture cp interface cluster match udp any any eq 49495
The following example shows how to create a capture for data path packets in the clustering link:
hostname (config)#
access-list cc1 extended permit udp any any eq 4193
hostname (config)#
access-list cc1 extended permit udp any eq 4193 any
hostname (config)#
capture dp interface cluster access-list ccl
The following example shows how to capture data path traffic through the cluster:
hostname (config)#
capture abc interface inside match tcp host 1.1.1.1 host 2.2.2.2 eq www
hostname (config)#
capture abc interface inside match udp host 1.1.1.1 any
hostname (config)#
capture abc interface inside access-list xxx
The following example shows how to capture logical update messages for flows that match the real
source to the real destination, and capture packets forwarded over CCL that match the real source to the
real destination:
hostname (config)#
access-list dp permit ip
real_src real_dst
The following example shows how to capture a certain type of data plane message, such as icmp echo
request/response, that is forwarded from one ASA to another ASA using the
match
keyword or the
access list for the message type:
hostname (config)#
capture capture_name interface cluster access-list match icmp any any
The following example shows how to create a capture by using access list 103 on a cluster control link:
hostname (config)#
access-list 103 permit ip A B
hostname (config)#
capture example1 interface cluster access-list 103
In the previous example, if A and B are IP addresses for the CCL interface, only the packets that are sent
between these two units are captured.
If A and B are IP addresses for through-device traffic, then the following is true:
•
Forwarded packets are captured as usual, provided the source and destination IP addresses are
matched with the access list.
Summary of Contents for 5505 - ASA Firewall Edition Bundle
Page 28: ...Glossary GL 24 Cisco ASA Series CLI Configuration Guide ...
Page 61: ...P A R T 1 Getting Started with the ASA ...
Page 62: ......
Page 219: ...P A R T 2 Configuring High Availability and Scalability ...
Page 220: ......
Page 403: ...P A R T 2 Configuring Interfaces ...
Page 404: ......
Page 499: ...P A R T 2 Configuring Basic Settings ...
Page 500: ......
Page 533: ...P A R T 2 Configuring Objects and Access Lists ...
Page 534: ......
Page 601: ...P A R T 2 Configuring IP Routing ...
Page 602: ......
Page 745: ...P A R T 2 Configuring Network Address Translation ...
Page 746: ......
Page 845: ...P A R T 2 Configuring AAA Servers and the Local Database ...
Page 846: ......
Page 981: ...P A R T 2 Configuring Access Control ...
Page 982: ......
Page 1061: ...P A R T 2 Configuring Service Policies Using the Modular Policy Framework ...
Page 1062: ......
Page 1093: ...P A R T 2 Configuring Application Inspection ...
Page 1094: ......
Page 1191: ...P A R T 2 Configuring Unified Communications ...
Page 1192: ......
Page 1333: ...P A R T 2 Configuring Connection Settings and QoS ...
Page 1334: ......
Page 1379: ...P A R T 2 Configuring Advanced Network Protection ...
Page 1380: ......
Page 1475: ...P A R T 2 Configuring Modules ...
Page 1476: ......
Page 1549: ...P A R T 2 Configuring VPN ...
Page 1550: ......
Page 1965: ...P A R T 2 Configuring Logging SNMP and Smart Call Home ...
Page 1966: ......
Page 2059: ...P A R T 2 System Administration ...
Page 2060: ......
Page 2098: ...1 8 Cisco ASA Series CLI Configuration Guide Chapter 1 Troubleshooting Viewing the Coredump ...
Page 2099: ...P A R T 2 Reference ...
Page 2100: ......