Command-line packet capture on ASA

I will be updated this post to contain an in depth deep dive on the capture capabilities.

Capture via the command line without an access-list

capture capin match ip 172.16.0.12 255.255.255.255 any

The above command will capture all packets sent from 172.16.0.12 to anywhere.

Another way to do this is to use an Access-List to match the desired traffic.

access-list capin extended permit ip host 172.16.0.12 any4
access-list capin extended permit ip any 4 host 172.16.0.12

capture capin access-list capin interface inside [or] outside [or] whatever the interface name is.