This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

What is the tshark equivalent of the wireshark -P command line option ?

0

How can I set the path setting for the preferences file on tshark as can be done with the -P wireshark flag ? I want to be able to specify on a tshark command line which preferences file to use.

asked 01 Aug '13, 07:00

DarrylHymel's gravatar image

DarrylHymel
11112
accept rate: 0%


One Answer:

1

How can I set the path setting for the preferences file on tshark as can be done with the -P wireshark flag ?

You cannot, as that functionality is not implemented in tshark. If you want to have that functionality, please file an enhancement request.

http://wiki.wireshark.org/ReportingBugs

In the meantime, you can only copy the personal profile directories from your personal path to the global profile directory of the user (%APPDATA%\Wireshark\profiles) and then select that profile with tshark option -C. However, that will only affect the profiles, not the preferences :-(

Or you create several batch files (as I did) for this purpose and you switch everything you need with those batch files, by copying everything to the user Wireshark directory, or by creating a junction (see mklink on Windows) for the global preferences directory (%APPDATA%\Wireshark).

rmdir %APPDATA%\Wireshark
mklink c:\wireshark\template_1 %APPDATA%\Wireshark

while c:\wireshark\template_1 contains your preferences, profiles, etc.

Regards
Kurt

answered 08 Aug '13, 07:02

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%