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

rearrange directories to microdep, new tcpdump-icmp

parent cd2bc612
......@@ -44,6 +44,6 @@ if ! pgrep -u $USER -f $vmstat >/dev/null; then
fi
if ! pgrep -u root -f '/usr/sbin/tcpdump.* icmp' >/dev/null; then
$HOME/dragonlab/bin/start-icmp.sh
$HOME/dragonlab/bin/start-tcpdump.sh
fi
#!/bin/bash
# catch icmp tgraffic on 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 - icmp
fi
#!/bin/bash
source $HOME/microdep/etc/start.cfg
sudo /usr/local/sbin/get-icmp.sh > ${logpath}/icmp-%F-%T.pcap 2> ${logpath}/icmp.log
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
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-%T.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