First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Wireshark Ring Buffer settings from Command line

I'm running Wireshark 3.0.0 for Windows 64bit

If I start Wireshark from the command line with the following parameters: -b duration:3600 -b filesize:2000 -b files:30 -w c:\windows\temp\filename.pcapng

Then Wireshark does start but the ring buffer setting page in Wireshark will show the correct settings for Filesize and Files, but the duration field will be disabled.

Is there something I should be doing differently?

Ro Yo Mi's avatar
5
Ro Yo Mi
asked 2019-03-21 04:29:25 +0000, updated 2019-03-21 04:56:02 +0000
edit flag offensive 0 remove flag close merge delete

Comments

A couple questions:

  • What happens when you specify an interface with -i "the interface"?
  • Why do you want to change the duration mid-capture?
  • To understand whether you should be doing something differently, what are you trying to do now?
Ross Jacobs's avatar Ross Jacobs (2019-03-21 22:37:30 +0000) edit

My use case: Wireshark launched with vanilla settings and left with a running capture will eventually use all available system resources, which is especially bad for production servers. To prevent this I've been using the ring buffer which periodically clears memory, but setting up the ring buffer at each launch of the application is tedious at best. Since Wireshark doesn't remember settings I want to include ring buffer settings on the command line.

When I use the -i option and the -b options I receive the same problem.

These same -b options work as expected in TShark. So it seems natural that they should work for Wireshark too.

Ro Yo Mi's avatar Ro Yo Mi (2019-03-23 03:30:22 +0000) edit
add a comment see more comments

1 Answer

0

Actually it seems that there's some confusion/mismatch between the command line and the GUI. The time option presented in the GUI is actually the interval option from the command line. The duration option is not actually presented in the GUI at all.

I've proposed a change to clean this up (exposing both options in the GUI) in this change: https://code.wireshark.org/review/32526 . That's significant enough that it may not get back-ported to the 3.0 branch though.

JeffMorriss's avatar
6.4k
JeffMorriss
answered 2019-03-22 18:58:29 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer