Hello! I'm trying to capture traffic with applying tshark filters in realtime.
After the some time odd situation occurs: file /tmp/retransmissions.txt stop grows, but wireshark temporary file still grows (looks like everything is fine and that traffic still captures). If I will start additional tshark process with the same filters (without redirection to file), I will see that retransmissions are present, but 1st process of the tshark will not redirect to output these packets. So the situation looks like redirection unexpectedly stops its work. Every necessary process runs in this time:
Do you have any ideas why this situation may occurs and how to resolve it? Thanks in advance! asked 02 Dec ‘13, 23:03 mrav edited 03 Dec ‘13, 05:55 Kurt Knochner ♦ |
One Answer:
tshark output is buffered. Please try tshark option -l and check if that helps. Same for sed, option -u. Regards answered 03 Dec '13, 01:44 Kurt Knochner ♦ edited 03 Dec '13, 01:49 showing 5 of 7 show 2 more comments |
Kurt,
I have tried this solution, unfortunately problem has occurred again.
O.K. then please do the following:
As soon as the output stalls, run the following commands
Then post the output files
cat tshark.strace
cat sed.starce
SIGKILL and close (0) has appeared in strace files after I have stopped the capturing script.
is that the only line in tshark.trace?
BTW: What is the output of the following commands, while the output stalls
Correct, only this line, which is not gave us any useful information..unfortunately.
Will try additionally to run strace from the beginning, when tshark works correctly .Maybe this will give additional information.
Disk space is present, while the output stalls. Anyway will try again to reproduce an issue and check the command output.
Many thanks for your help!
that will generate way too much data....
Please run strace on dumpcap while the output stalls.
Output of commands is the following:
lsof -n |egrep '(tshark|dumpcap)'
df -h
strace