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

tshark -C $profile produces "Configuration Profile does not exist"

Description

I am trying to use a different profile with tshark and have had difficultiy in getting it to work. I get a Configuration Profile does not exist error when specifying the Personal Configuration with -C on Windows/Linux/Macos. I find the Configuration's path by going to Wireshark > About > Folders (And Wireshark > Wireshark > About > Folders on Macos). I have verified that this folder exists on each OS. Changing profiles in Wireshark works fine.

Examples

Linux (v2.6.8)

rj@vmbuntu:/tmp$ tshark -C "/home/rj/.config/wireshark"
tshark: Configuration Profile "/home/rj/.config/wireshark" does not exist

Macos (v3.0.3)

bash-5.0$ tshark -C /Users/rj/.config/wireshark
tshark: Configuration Profile "/Users/rj/.config/wireshark" does not exist

Windows (v3.0.0)

PS C:\Program files\Wireshark> ./tshark -C "C:\Users\rj\AppData\Roaming\Wireshark"
tshark: Configuration Profile "C:\Users\rj\AppData\Roaming\Wireshark" does not exist

Question

Why does tshark have an error when reading a profile when Wireshark does not? What am I missing?

Ross Jacobs's avatar
71
Ross Jacobs
asked 2019-08-08 07:12:05 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

The -C option requires a profile name, not a path. Try with one of your existing profile names created in Wireshark.

Stig's avatar
138
Stig
answered 2019-08-08 07:31:38 +0000
edit flag offensive 0 remove flag delete link

Comments

Cheers for the quick response. I had a feeling it was something simple.

Ross Jacobs's avatar Ross Jacobs (2019-08-08 07:48:18 +0000) edit
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