Commit a4aaa206 authored by Olav Kvittem's avatar Olav Kvittem

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
#!/bin/sh
source $HOME/dragonlab/etc/start.cfg
if [ ! -d $logpath/$date ]
then
mkdir -p $logpath/$date
fi
sudo /usr/local/bin/mapidump -l 86400 -d ntx7 -w $logpath/$date/passive.pcap > /dev/null 2>> $logpath/$date/error.log &
#!/bin/bash
if="eth2"
/usr/sbin/tcpdump -i $if 'udp and (port 10001 or port 10002)' -w - 2> /dev/null | gzip -c > $1.gz
crude_port=10001
tcptrace_bin="/usr/sbin/tcptraceroute"
logpath="$HOME/dragonlab/data"
rudecfg="$HOME/dragonlab/etc/rude.cfg"
dump="$HOME/dragonlab/bin/starttcpdump.sh"
trace="$HOME/dragonlab/bin/trace.sh"
tcptrace="$HOME/dragonlab/bin/tcptrace.sh"
trace6="$HOME/dragonlab/bin/trace6.sh"
vmstat="$HOME/dragonlab/bin/vmstat.sh"
ntp="$HOME/dragonlab/bin/ntp-jitter.sh"
crude="$HOME/dragonlab/bin/crude"
rude="$HOME/dragonlab/bin/rude"
date=`env TZ=Europe/Oslo date +%Y%m%d`
if test -f $HOME/dragonlab/etc/local.cfg; then
source $HOME/dragonlab/etc/local.cfg
fi
up ALL=(ALL) NOPASSWD: /usr/local/sbin/get-icmp.sh
\ No newline at end of file
crude_port=10001
tcptrace_bin="/usr/sbin/tcptraceroute"
root="$HOME/microdep"
logpath="$root/data"
rudecfg="$root/etc/rude.cfg"
dump="$root/bin/starttcpdump.sh"
trace="$root/bin/trace.sh"
tcptrace="$root/bin/tcptrace.sh"
trace6="$root/bin/trace6.sh"
vmstat="$root/bin/vmstat.sh"
ntp="$root/bin/ntp-jitter.sh"
crude="$root/bin/crude"
rude="$root/bin/rude"
date=`env TZ=Europe/Oslo date +%Y-%m-%d`
if test -f $root/etc/local.cfg; then
source $root/etc/local.cfg
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