Commit 61801c17 authored by Olav Kvittem's avatar Olav Kvittem

mass edit prefix change to microdep

parent a4aaa206
......@@ -2,7 +2,7 @@
# start measurement jobs if not running
export USER=$(whoami)
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
stop=no
if test $# -gt 0; then
......@@ -32,11 +32,11 @@ if ! pgrep -u $USER -f $rude >/dev/null; then
fi
if ! pgrep -u $USER -f $trace >/dev/null; then
$HOME/dragonlab/bin/start-trace.sh
$HOME/microdep/bin/start-trace.sh
fi
if ! pgrep -u $USER -f $tcptrace >/dev/null; then
$HOME/dragonlab/bin/start-tcptrace.sh
$HOME/microdep/bin/start-tcptrace.sh
fi
if ! pgrep -u $USER -f $vmstat >/dev/null; then
......@@ -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-tcpdump.sh
$HOME/microdep/bin/start-tcpdump.sh
fi
#!/bin/bash
# kill mp-rude measurements at midnight CET
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
T=$(env TZ=Europe/Oslo date +%T)
if test $T = "00:00:00"; then
......
echo add to /etc/sudoers.d/dragonlab
echo $USER 'ALL=(ALL) NOPASSWD: /usr/sbin/tcpdump'
echo touch $HOME/dragonlab/etc/tcpdump-imcp
\ No newline at end of file
#!/bin/sh
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
id=`ps xa | grep ntx7 | grep mapidump | awk '{print $1}'`
......
echo add to /etc/sudoers.d/microdep.sudo
sudo echo $USER 'ALL=(ALL) NOPASSWD: /usr/local/sbin/get-icmp.sh' > /etc/sudoers.d/microdep.sudo
touch $HOME/microdep/etc/tcpdump-imcp
\ No newline at end of file
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
> $logpath/$date/ntp.gz
......
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
IF=`ip route get 158.38.62.1 | perl -ne 'print $1 if / dev (\w+) /'`
......
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
tracetargets=`cat $HOME/dragonlab/etc/trace.cfg`
source $HOME/microdep/etc/start.cfg
tracetargets=`cat $HOME/microdep/etc/trace.cfg`
if [ ! -d $logpath/$date ]
......
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
tracetargets=`cat $HOME/dragonlab/etc/trace.cfg`
source $HOME/microdep/etc/start.cfg
tracetargets=`cat $HOME/microdep/etc/trace.cfg`
if [ ! -d $logpath/$date ]
......
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
if [ -e $logpath/pids ]
then
......@@ -31,4 +31,4 @@ $rude -s $rudecfg > /dev/null 2> /dev/null &
echo "$!" >> $logpath/pids
$HOME/dragonlab/bin/start-trace.sh
$HOME/microdep/bin/start-trace.sh
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
if [ ! -e $logpath/pids ]
then
......@@ -10,6 +10,6 @@ fi
for i in $(cat $logpath/pids); do kill $i; done
#ok sudo $HOME/dragonlab/bin/killtcpdump.sh
#ok sudo $HOME/microdep/bin/killtcpdump.sh
rm $logpath/pids
#!/bin/bash -x
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
> $logpath/$date/tcptraceroute_$1.gz
......
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
log=$logpath/$date/traceroute_$1
......
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
> $logpath/$date/traceroute_$1.gz
......
#!/bin/bash
source $HOME/dragonlab/etc/start.cfg
source $HOME/microdep/etc/start.cfg
vmstat | perl -e 'while(<>) { $utc=`date -u +%s`; chop $utc; print "$utc $_"; }' | gzip -c > $logpath/$date/vmstat.gz
......
......@@ -5,5 +5,5 @@ CRON_TZ='Europe/Oslo'
# m h dom mon dow command
*/1 * * * * $HOME/dragonlab/bin/autostart.sh
*/1 * * * * $HOME/microdep/bin/autostart.sh
up ALL=(ALL) NOPASSWD: /usr/local/sbin/get-icmp.sh
\ No newline at end of file
microdep ALL=(ALL) NOPASSWD: /usr/local/sbin/get-icmp.sh
\ No newline at end of file
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