Forum Discussion
tcpdump on LTM
I am trying to capture traffic of communications between clients and servers. I currently have the syntax of my tcpdump commands worked out to what I want. But, when I try to save it to a file type and export it off the LTM and try to open it in wireshark for analysis, I get the following error. "The file "test.pcap" isnt a capture file in a format Wireshark understands." I receive this error from other file types as well.
Is there a standard file type I should Use? After I finish posting this I am going to try this with .bin instead of .pcap or its variants.
2 Replies
- Mohanraj82_1982
Nimbostratus
Try to use in the below format
tcpdump -ni eth0 -s0 -w /var/tmp/capture.pcap
- nitass
Employee
when I try to save it to a file type and export it off the LTM and try to open it in wireshark for analysis, I get the following error. "The file "test.pcap" isnt a capture file in a format Wireshark understands."
what the tcpdump command did you use? was it -w option?
-w Write the raw packets to file rather than parsing and printing them out. They can later be printed with the -r option. Standard output is used if file is ââ-ââ. When writing packets in this manner, the first packet in the file will be a pseudo packet indicating the command line used to run tcpdump and some system information. This pseudo packet is not counted in the packets captured summary information nor when limiting the length of the capture with the -c option.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com