How to edit the resulting file dump. Trim the time until the right moment. I need to send it to technical support, but with this program I unfortunately did not work. asked 23 Dec '12, 06:44 Kallikanzarosa edited 27 Dec '12, 07:56 multipleinte... |
One Answer:
Have a look at editcap which comes with Wireshark. The -A and -B options can specify a start and stop time respectively for the output packets. answered 23 Dec '12, 07:10 grahamb ♦ showing 5 of 10 show 5 more comments |
where insert this command?
it is a command line tool, so you have to run it in a shell. Calling editcap without parameters will give you a help output.
command it's cmd or in wireshark? I beginner and can't find where insert "editcap"
cmd, in the same directory where you find the wireshark executable.
step by step ?) I can't do it. I must use "START C:\Program Files\Wireshark\editcap.exe" or not?
pls. I need sent it to zyxel support(
well, you could have tested that yourself, right? But never mind. Here is a step-by-step guide.
cd c:\my_directory_where_the_cap_file_lives
%programfiles%\wireshark\editcap -A 2012-12-24 08:00 -B 2012-12-24 10:00 input.pcap output.pcap
WARNING: The dates are just sample dates. Please use your own!!!
HINT If you don't know what '-A' and '-B' will do for you, please read the man page of editcap!!
c:\my_directory_where_the_cap_file_lives\output.cap
with wiresharkc:\my_directory_where_the_cap_file_lives\output.cap
into a mail to zyxel supportRegards
Kurt
For detailed usage info of editcap see here.
But going back to the original question, it seems to me that you've got a capture file you can load in Wireshark. If that is so then you could note the frame number of the first and last frame of the time span you are interested in sending to zyxel. Then go to the menu File|Save As... and define, at the bottom of the dialog, the packet range using the numbers you noted before.
Open a command prompt,
cd
to the directory containing the capture file, and then enter the commandc:\program files\wireshark\editcap -A YYYY-MM-DD HH:MM:SS -B YYYY-MM-DD HH:MM:SS infile outfile
where infile is the name of your source capture, outfile is the name of the output file, the -A parameter specifies the starting date and time for output packets and -B the ending date and time.Time date formet not true (don't work) but I chose packet (333-768) and do it! Thanks!)