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