I have just installed Wireshark 1.10.1 on Windows XP (Home) SP3. Previously I have been using Ethereal and during live capturing the capture file modification timestamp changed in every time the capture file was written to. This does not appear to happen with Wireshark. The size of the file changes, but not its modification timestamp, which I make reference to in a bespoke application to test that it hasn't frozen/aborted. Is there a way to force Wireshark to update the capture file modification timestamp? asked 24 Dec '13, 02:03 gargoil666uk |
2 Answers:
On my machine (Win7 Pro x64) it looks like the modified timestamp is only updated when the capture is stopped. It doesn't seem to update the modified timestamp while writing packets, which I agree could be useful. I'm just not sure if this is anything dumpcap can be made responsible for, because it might be an OS issue. But if you say it worked with Ethereal on the same machine and the same OS then you could open a bug at http://bugs.wireshark.org, but please check the bug tracker for existing bug reports of the same kind first. answered 24 Dec '13, 03:55 Jasper ♦♦ |
I can't confirm your findings on a Win XP SP3 system. On my system, the file written by dumpcap gets the new modification time every time dumpcap flushes the next couple of bytes. Starting Powershell and 'monitoring' the last write access time stamp.
Are you aware of the changes between ethereal and Wireshark? There is now a TEMP file written by dumpcap (the application that is actually capturing the packets). That TEMP file will be created in %TEMP%\ and named like in my example above. So, that’s the file to monitor. Having said that, I wonder how you started Wireshark and which file you were monitoring for changes, because the TEMP files time stamp does change on Win XP SP3, tested with Wireshark 1.11.0 and 1.10.1 !??! –UPDATE– O.K. if I start Wireshark directly with option -w (I did not in my first test), then I can confirm the described behavior. Sorry, for the confusion. Regards answered 25 Dec ‘13, 08:22 Kurt Knochner ♦ edited 25 Dec ‘13, 15:39 |
Thanks Jasper.
I will look into it. In the mean time I shall monitor the size of capture files instead of the modification timstamps, then I will know if Wireshark is actively capturing to file.