next up previous contents index
Next: zeitfilter Up: ICMP-Flut Previous: ICMP-Flut

zeittest.sh

#! /bin/sh
# zeittest - ICMP-Transfers messen

[ $# -eq 0 ] && echo "Aufruf: $0 site [wan]" && exit 1

mkdir savedir > /dev/null 2>&1

PATH=$PATH:.

tmp=/tmp/zeit.out

maxcount=10

>zeit.$1

list="5000 6000 7000 8000 9000 10000 11000 12000 13000 14000 15000"

[ "$2" = wan ] && list="50 100 150 200 250 300 350 400 450 500"

for i in $list
do
        count=1
        while [ $count -le $maxcount ]
        do
                echo $i
                time (ping -q -c $i -f $1 > /dev/null) 2> $tmp
                zeitfilter $i < $tmp > zeit.$1.$i.$count
                count=`expr $count + 1`
        done
        varianz zeit.$1.$i.[0-9]* >> zeit.$1
        mv zeit.$1.$i.[0-9]* savedir/
done

exit 0


Andreas Godzina
1999-04-06