Add new file tcpdump_getdata.sh
This commit is contained in:
parent
d52ee646a7
commit
69df03bc83
1 changed files with 7 additions and 0 deletions
7
tcpdump-schedule/tcpdump_getdata.sh
Normal file
7
tcpdump-schedule/tcpdump_getdata.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
DATE=$(date '+%Y-%m-%d_%H%M%S')
|
||||||
|
INTERFACE=eth0
|
||||||
|
PATH=/var/tmp/
|
||||||
|
FILENAME=tcpdump_$DATE.pcap
|
||||||
|
|
||||||
|
#Execute tcpdump command
|
||||||
|
/usr/sbin/tcpdump -i $INTERFACE -s0 -w "$PATH/$FILENAME"
|
Loading…
Add table
Add a link
Reference in a new issue