source: tests/uberping

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 391 bytes
Line 
1#!/bin/bash
2SIZE=32;
3echo "Started $1 at `date`:" | tee -a $1.log
4while [ $SIZE -le 65536 ]; do
5        RSIZE=$SIZE;
6        if [ $RSIZE -gt 65507 ]; then
7                RSIZE=65507
8        fi
9               
10        ping -c 10 $1 $2 -s $RSIZE > /tmp/$$;
11        LOSS=`grep loss /tmp/$$ |cut -d, -f3`
12        AVG=`grep avg /tmp/$$ |cut -d'/' -f5`
13        echo -e "Size $RSIZE $LOSS, avg=$AVG" | tee -a $1.log;
14       
15        (( SIZE=SIZE*2 ))
16done
17
18rm /tmp/$$
19wijziging in head
Note: See TracBrowser for help on using the repository browser.