Wireshark-users: Re: [Wireshark-users] Printing, saving wireshark graphs
From: Andrew Schweitzer <a.schweitzer.grps@xxxxxxxxx>
Date: Sun, 30 Jul 2006 23:16:50 -0400
Guy Harris wrote:
Andrew Schweitzer wrote:

Wireshark has wonderful abilities to create graphs. Is there a way to print these graphs?


Unfortunately, no.

There's currently code in Wireshark to create a "print stream" object and print lines of text to it. That could perhaps be extended to add methods for graphics, although, currently, the only types of "print stream" objects that are supported are plain text (which would have to draw those graphs with ASCII art) and PostScript (which would require a PostScript printer or PostScript interpreter).

It would probably make sense to add new print stream types, e.g. for Windows printing, OS X printing, GNOME printing, KDE printing, etc..


And a bonus would be the ability to save them.


Save them in what form? PostScript? PDF? GIF/PNG/...? SVG? Some graphics metafile format? The raw data, in a graph-dependent form?

Maybe pdf or html? Dumping out the raw data, in csv form would be great too.

Sorry if I just didn't read doc carefully enough.

PS even better would be to do all these wonderful things from the command line so we can use python to just make a big graph of all the capture files in a directory :)


I.e., Tshark taps to do graphs?
sorry, "taps"? Maybe that's some tshark think I haven't figured out yet? I've used tshark to dump stats to console and piped that to a file, and that works reasonably well for graphing. Is that what you mean?

I used:
"tshark -r SomeFile.cap -z io,stats,10 -q > SomeFileStats.txt 2>&1"

Would it send the plots to the standard output in one of those formats,

I guess I was thinking to one of those formats.

with display/printing/whatever done by an application to which you pipe the output, or what?