Edit tcpdump_getdata.sh
This commit is contained in:
parent
e487d56147
commit
9df96183f8
1 changed files with 4 additions and 5 deletions
|
@ -1,9 +1,8 @@
|
||||||
DATE=$(date '+%Y-%m-%d_%H%M%S')
|
INTERFACE=0.0
|
||||||
INTERFACE=eth0
|
PATH=/shared/tmp/pba
|
||||||
PATH=/var/tmp/
|
FILENAME=tcpdump-%Y-%m-%d_%H%M%S.pcap
|
||||||
FILENAME=tcpdump_$DATE.pcap
|
|
||||||
|
|
||||||
# Execute tcpdump command
|
# Execute tcpdump command
|
||||||
# -W 5 = Limit 5 files
|
# -W 5 = Limit 5 files
|
||||||
# -G 60 = Rotate every 60 seconds
|
# -G 60 = Rotate every 60 seconds
|
||||||
/usr/sbin/tcpdump -i $INTERFACE -s0 -w "$PATH/$FILENAME" -W 5 -G 60
|
/usr/sbin/tcpdump -K -W 5 -G 60 -nni $INTERFACE -s0 -w "$PATH/$FILENAME"
|
Loading…
Add table
Add a link
Reference in a new issue