Skip to content

Add script to dump traffic on production#654

Closed
EvgeniiMekhanik wants to merge 6 commits intomasterfrom
MekhanikEvgenii/debug-script
Closed

Add script to dump traffic on production#654
EvgeniiMekhanik wants to merge 6 commits intomasterfrom
MekhanikEvgenii/debug-script

Conversation

@EvgeniiMekhanik
Copy link
Contributor

No description provided.

"-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.

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