next up previous contents index
Next: icmpfilter Up: ICMP-Transfers Previous: ICMP-Transfers

icmptest.sh

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

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

mkdir savedir > /dev/null 2>&1

PATH=$PATH:.

maxcount=10
> icmp.$1

size=500
increment=500
maxsize=9500

# Update ARP-Cache
ping -f -c 1 $1 > /dev/null

while [ $size -le $maxsize ]
do
        echo $size...
        count=1

        while [ $count -le $maxcount ]
        do
                ping -c 5 -s $size $1 | icmpfilter $size > icmp.$1.$size.$count
                count=`expr $count + 1`
        done

        varianz icmp.$1.$size.[0-9]* >> icmp.$1
        mv icmp.$1.$size.[0-9]* savedir/

        size=`expr $size + $increment`
done

exit 0



Andreas Godzina
1999-04-06