Forum Discussion
Martin_Kaiser_1
Jul 19, 2011Nimbostratus
Running long-living tcpdumps on BigIP
Hi guys,
I'm not quite sure if this is the right forum to post the question, but I couldn't find a more suitable one...
I often need the possibility to monitor specific client conn...
RiverFish
Altostratus
Unfortunately I've never created a cron job, could you break it down for me please? Let's say I wanted the tcpdump job to kick off at 10:30 PM and run until 3:00 AM.
nitass
Nov 23, 2014Employee
>Unfortunately I've never created a cron job
Schedule Tasks on Linux Using Crontab
http://kvz.io/blog/2007/07/29/schedule-tasks-on-linux-using-crontab/
it is just tcpdump and killall commands. you are aware that W option will overwrite old file, aren't you?
e.g.
[root@ve11a:Active:In Sync] config crontab -l
cron tab for root
1-59/10 * * * * /usr/bin/diskmonitor
MAILTO=""
51 * * * * /usr/bin/copy_rrd save
27 21 * * * /usr/sbin/tcpdump -nni 0.0:nnn -s0 -C 1 -W 10 -w /var/tmp/test
30 21 * * * killall tcpdump
[root@ve11a:Active:In Sync] config ls -l /shared/tmp/|grep test
-rw-r--r-- 1 pcap pcap 1000011 Nov 23 21:29 test0
-rw-r--r-- 1 pcap pcap 1000028 Nov 23 21:29 test1
-rw-r--r-- 1 pcap pcap 1000171 Nov 23 21:29 test2
-rw-r--r-- 1 pcap pcap 710416 Nov 23 21:30 test3
-rw-r--r-- 1 pcap pcap 1000020 Nov 23 21:29 test4
-rw-r--r-- 1 pcap pcap 1000147 Nov 23 21:29 test5
-rw-r--r-- 1 pcap pcap 1000119 Nov 23 21:29 test6
-rw-r--r-- 1 pcap pcap 1000237 Nov 23 21:29 test7
-rw-r--r-- 1 pcap pcap 1000086 Nov 23 21:29 test8
-rw-r--r-- 1 pcap pcap 1000256 Nov 23 21:29 test9
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