On Fri, Sep 21, 2012 at 6:40 PM, Jimb Esser <[email protected]> wrote:
> I have no idea how to capture traffic on Linux, but I could do so if there
> are some good instructions somewhere.  The problem generally takes hundreds
> of MB of traffic to reproduce, however, so I'm not sure if logging that
> traffic will affect it and cause it to not occur, but I'm willing to try.

tcpdump? It's easy:

    tcpdump -C 1 -G 5 -i <interface> -n -s 1500 -w <filename> tcp port <port>

The -C and -G options makes it rotate the log file every 5 seconds or
when it grows to 1 million bytes, whatever comes first. You may need
to increase the snarf size (-s) to 8192 or higher if you're capturing
loopback traffic.

You can replay the traffic with `tcpdump -A -r <filename>`.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to