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

Add script to dump traffic on production #654

Closed
wants to merge 6 commits into from

Conversation

EvgeniiMekhanik
Copy link
Contributor

No description provided.

helpers/tcpdump.py Outdated Show resolved Hide resolved
"-U",
"-i",
f"{ethname}",
"-w",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helpers/tcpdump.py Outdated Show resolved Hide resolved
if cur_time - t > time_to_clear_dump:
os.remove(f)

def __clear_tcpdump(self, cur_time, time_to_clear_dump) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use -C (file size) and -W (file count) options https://www.tcpdump.org/manpages/tcpdump.1.html and then this method is not needed

@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/debug-script branch 3 times, most recently from c3feffc to 6209e72 Compare July 30, 2024 17:07
@EvgeniiMekhanik EvgeniiMekhanik marked this pull request as draft July 30, 2024 17:07
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/debug-script branch 3 times, most recently from 044a5e4 to eec7d7a Compare July 31, 2024 10:06
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/debug-script branch from eec7d7a to d57320f Compare July 31, 2024 10:15
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/debug-script branch 2 times, most recently from e277c31 to 2da4817 Compare July 31, 2024 13:05
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/debug-script branch from 2da4817 to caf5f61 Compare July 31, 2024 13:21
@RomanBelozerov
Copy link
Contributor

closed by #663

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

Successfully merging this pull request may close these issues.

2 participants