Commit 82826446 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

added start-icmp which runs to midnight

parent 1b359166
......@@ -8,7 +8,7 @@ apt-get update
apt-get -y upgrade
package="mp-rude"
version="1.3.10"
version="1.3.11"
#version=$(git describe|perl -p -e 'chomp;s/v([^-]+)(-(\d+)-g.+)?$/\1+\3/;s/\+$//')
......
#! /bin/sh
# dump igmp traffic to catch unreachables
. /etc/mp-rude/start.conf
# pick interface with default route
IF=`ip route get 158.38.62.1 | perl -ne 'print $1 if / dev (\w+) /'`
if test "$IF" != ""; then
tomidnight=$((`date --date 'tomorrow 00:00' +%s`-`date +%s` - 1))
/usr/sbin/tcpdump -i $IF -G $tomidnight -W 1 -w ${logpath}/icmp-%F.pcap icmp 2> ${logpath}/icmp.log
fi
......@@ -18,10 +18,8 @@ for i in $(cat ${traceconf}) ; do
echo "$!" >> "${pidfile}"
done
# start tcpdump
# start tcpdump og icmp
$bin/start-icmp
IF=`ip route get 158.38.62.1 | perl -ne 'print $1 if / dev (\w+) /'`
if test "$IF" != ""; then
/usr/sbin/tcpdump -i $IF -G 86399 -W 1 -w ${logpath}/icmp-%F.pcap icmp 2> ${logpath}/icmp.log
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment