TShark Config profile - Configuration Profile "x" does not exist
Hi, I've been tryin to work out the TShark profile filter option workout any luck. Appreciate any ideas/guidance please.
I have the Profile Folder Created in the .config/wireshark/profiles/ - called 'sim' inside sim folder is the cfilters file. Within cfilters i have the name of a filter followed by the filter syntax IE 123 multicast and not ssh port 22
tshark -C sim -f "predef:123"
error: Configuration Profile sim does not exist
what is output of "tshark -G folders" ?
report
I suspect the issue is that there is no Profiles path listed? Should there be an path for the Profiles folder and then one for the specific created profile? I can see the created profile under the WireShark GUI - along side the default profiles.
Is the Global configuration: /usr/shar/wireshark a typo?
tshark knows to append a "profiles" directory to the path when looking for a profile.
yes that is a typo.
The script I have before trying to do the Config Profile, as access to the VMs to run Tshark. The User is same name and pass on all OS's.
These/above and other combinations I try all return the same thing: No such file or directory.
This/above also returns: No such file or directory.
The above is the same output I get, if run local or via SSH, ie: local: tshark -G folders SSH: ssh -tt -q 10.x.x.x 'tshark -G folders'
its sorted. I was too concerned about the folder report and not seeing the 'profiles' folder listed.
After the original post I had created the profiles folder on all VMs I was calling. Once I created the fold copy script to update all the profile named folders with the cfilter file. Then ran the Tshark locally calling the profile and filter name, it worked. Then back to the original script calling the Tshark via SSH with the profile and predef filter.... it worked.
Happy days,
thanks for the help.