Masayoshi Kobayashi | 454a436 | 2013-04-08 07:44:45 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | if [ $# != 1 ]; then |
| 3 | echo "$0 flowdef_file" |
| 4 | elif [ ! -f ${HOME}/ONOS/web/$1 ]; then |
| 5 | echo "no such flowdef file: $1" |
| 6 | fi |
Masayoshi Kobayashi | 9142f0c | 2013-04-08 22:24:42 +0000 | [diff] [blame] | 7 | echo "Raw data at /tmp/.pingall.result.$$" |
Masayoshi Kobayashi | 454a436 | 2013-04-08 07:44:45 +0000 | [diff] [blame] | 8 | dsh "cd ONOS/web; ./pingallm-local.py $1" > /tmp/.pingall.result.$$ |
| 9 | cat /tmp/.pingall.result.$$ | grep "Pingall flow" | sort -n -k 4 |
| 10 | cat /tmp/.pingall.result.$$ | grep "Pingall Result" | awk '{s+=$5; f+=$7; i+=$9}END{printf("Pingall Result: success %d fail %d incomplete %d\n",s,f,i)}' |
| 11 | |