Home:ALL Converter>How do I capture three hosts with Wireshark via command line?

How do I capture three hosts with Wireshark via command line?

Ask Time:2014-04-11T06:00:26         Author:Brian Cook

Json Formatter

I am successfully able to capture with this command line. C:\Program Files\Wireshark\wireshark.exe -i 4 -k -b duration:3600 -w c:\capture.pcap

I have tried this method and it pops the Wireshark command line help window. C:\Program Files\Wireshark\wireshark.exe -i 4 -k -b duration:3600 -w -f 10.0.0.1 and 10.0.0.2 and 10.0.0.3 c:\capture.pcap

I have also tried this way. C:\Program Files\Wireshark\wireshark.exe -i 4 -k -b duration:3600 -w -f host 10.0.0.1 and 10.0.0.2 and 10.0.0.3 c:\capture.pcap

Neither one of the above work. they both get the same error. I know it is something simple, however I do not know Wireshark well enough.

Thanks.

Author:Brian Cook,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/22999890/how-do-i-capture-three-hosts-with-wireshark-via-command-line
yy