Posted on 2011-10-31
Last Modified: 2012-05-12
I'm experiencing tcp/ip timeouts between 2 hosts and i don't know if it's the operating system or the application that has the problem. I want to run tcpdump to try and find out why they are happening. i can limit the tcpdump by destination address and also port number but is there a way to limit the size of the file that it's written to to say 1GB and less - i want to cron it and leave it running and i don't want it to fill up the filesystem.
tcpdump -w <file> port <portno> dst <ip>
Does anyone know the best flags to use to get a more readable output from tcpdump?
Question by:lolaferrari
    LVL 31

    Accepted Solution

    Yes, sure use

    tcpdump -C filesize

    option to restrict the file size.

    Author Closing Comment

    many thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Email attacks are the most efficient and effective way for cyber criminals and hackers to compromise a computer or network. We often find our-self second guessing the authenticity of an email message, for such instances we can follow practical princ…
    Healthcare providers, insurance companies and other covered entities trust eFax Corporate to transmit their most sensitive documents. eFax Corporate can help your organization implement a HIPAA compliant cloud faxing solution.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now