ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to perform a tcpdump on Redhat Linux

book

Article ID: 133041

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Steps to run a TCPDUMP on Redhat Linux

Environment

Red Hat Linux Enterprise and CentOS

Resolution

It is suggested to utilize "Yum" to get this installed if it is not.

"yum install tcpdump"

 

Run this command:

 

tcpdump -i any -w /tmp/capture.pcap

 

This will log on ANY interface and on ALL ports.

This can be limited down, for example if you wanted only port 8080 traffic:

 

tcpdump -i any port 8080 -w /tmp/capture.pcap

 

However, for most issues relating to Broadcom products - ANY/ALL is helpful and we can filter the results down using Wireshark.