Forum Discussion
Barry_Daborn
Nimbostratus
May 09, 2018Schedule tcpdump
How to schedule a tcpdump daily
- youssef1
Cumulonimbus
Hi,
you can do use the following procedure:
crontab -e
and then add the line
30 17 * * * /usr/sbin/tcpdump -G 12600 -W 1 -s 3000 -w /home/ubuntu/capture-file.pcap port 5060 or portrange 10000-35000
- -G flag indicate number of second for dump to run, this example runs daily from 5:30 PM to 9:00 PM
- -W is the number of iterations tcpdump will execute
- Cron job will not be added until you save and exit the file
- This example is for capturing packets of an Asterisk phone server
Let me now if you need additional help.
Regards
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects