When I use the link below to automatically start wireshark when starting the PC, wireshark will not create a new log file each time the computer is restarted: "C:\Program Files (x86)\Wireshark\wireshark.exe" -i "\Device\NPF_{59A6CEB4-F94B-47ED-A6FF-7F61ED6EED06}" -k -w "C:\Users\receptie1\Desktop\SHARE\capture.pcap" -B10 -b:5000 Please provide me a solution. Thank you. asked 13 Jan '13, 21:12 Ruben |
2 Answers:
You can use the following command in your batch script, to add the current date/time to the file name:
Then use the variable filename with the option
Sample:
Regards answered 14 Jan '13, 01:21 Kurt Knochner ♦ edited 14 Jan '13, 02:01 |
There is a syntax error in your command, which prevents the command from being run:
The "-b" option expects some more info (see "wireshark -h" output):
So you could use the following command:
To create a ringbuffer of 100 files of 5000KB each (500 MB in total). When wireshark needs to create the 101st file, it will delete the oldest file first. Please be aware that old files are not removed after each restart, so each restart will add another 100 files of 5000KB. You need to remove the files yourself after a reboot. answered 14 Jan '13, 15:08 SYN-bit ♦♦ |