Commit 5acb5347 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

generate rude.cfg, trace.cfg and rsync it out

parent fe7f003b
Scripts to run rude/crude, traceroute and collect results
File deleted
File deleted
#!/bin/bash
pid=`pidof rude`
cpid=`pidof crude`
if test .$pid = . -o .$cpid = . ; then
$HOME/dragonlab/bin/stop.sh
$HOME/dragonlab/bin/start.sh
fi
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
if [ -e $logpath/pids ]
then
echo "Pid file already exists: $logpath/pids"
fi
if [ ! -d $logpath/$date ]
then
mkdir -p $logpath/$date
fi
# $vmstat 2> /dev/null > /dev/null&
# echo "$!" > $logpath/pids
#Start crude
# $crude -k | gzip -c > $logpath/$date/crude-`date +%T`.gz 2> /dev/null&
# $crude -k -6 -p10002 | gzip -c > $logpath/$date/crude_v6.gz 2> /dev/null&
# pidof $crude >> $logpath/pids
#Start tcpdump
#ok sudo $dump $logpath/$date/dump.pcap&
#Start rude
# $rude -s $rudecfg > /dev/null 2> /dev/null &
# echo "$!" >> $logpath/pids
#Start traceroute
for i in $tracetargets; do
$trace $i 2> /dev/null > /dev/null&
echo "$!" >> $logpath/pids
done
for i in $tracetargets; do
$tcptrace $i 2> /dev/null > /dev/null&
echo "$!" >> $logpath/pids
done
for i in $tracetargets6; do
$trace6 $i 2> /dev/null > /dev/null&
echo "$!" >> $logpath/pids
done
#Start ntp jitter
$ntp 2>/dev/null >/dev/null&
echo "$!" >> $logpath/pids
#!/bin/bash
# kill processes trace.sh which are from yesterday - time field with alpha-text
ps -ef | perl -ane 'printf "kill %s # %s %s %s\n", $F[1], $F[7],$F[8],$F[9] if /trace.sh/ && $F[4] =~ /^[A-Z]/' | sh -x
from="158.38.62.70,2001:700:1::62:70,158.38.130.56,2001:700:0:4513::56",no-agent-forwarding,no-port-forwarding,no-pty,no-user-rc,no-X11-forwarding ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDP/QWtrDhFDIYjrXasgiy+AOC0hU1Kv2WUqe21Kz6q8XQeZFpfW7i0mpifaXUmLZ3FdDUaIoFhAxOiaGao2b33DLEUeuc63oT7L/utr0hOH3XGgf9mmDw7zL4FbgPqno7K0dE+eawTIHLx6RtcIZ9HLiLEPMYqPAXA2589XUZjt5r5tMs9VHFb6aTp9AJDvkz1a2xmvgmaKNSvK5itpOhOkVeUxLHTa+taCcreYPAsKyatJDPJWHr7Ouj4x+c9WvmZXTvyVtpBcy1P0zmBACDK5ymGkCXdtd0V3TLYpafbAORaRc6sCyJFAw3jtlAPFkZniEz4Eyq7lHgpoXVmoJqt up@iou2
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