Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to exit and cleanup after running ksniff with -o option? #53

Open
Makusi75 opened this issue Dec 12, 2019 · 2 comments
Open

How to exit and cleanup after running ksniff with -o option? #53

Makusi75 opened this issue Dec 12, 2019 · 2 comments

Comments

@Makusi75
Copy link

In some test scripts I sometimes use ksniff to sniff a container and save to output to a capture file by use the "-o" flag to ksniff, for example:

kubectl sniff -c -o

I also tried to use the "-p" flag for priviledge mode that starts a new pod.

But when I try to stop/quit the ksniff, either by "ctrl-c" or let my script kill the ksniff process, then the "ksniff"-pod is kept aswell as the "static-tcpdump" process in the container (if I launch without the "-p" flag).
If I do not use the "-o" flag, and insteasd let it launch Wireshark, then everything seem to be safely stoped and clean up after quit the Wireshark application. But if I use the "-o" option and send the stream to a file, I have not yeat found a nice way to stop/quit the ksniff application.

@aviramha
Copy link

#66 Fixes this

@Makusi75
Copy link
Author

Thanks! :-) @aviramha , @eldadru are there any plan to soon make a new release with this included available? That would be great! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants