summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Raymond <kraymond@avencall.com>2012-07-04 13:39:03 +0200
committerKévin Raymond <kraymond@avencall.com>2012-07-04 13:39:03 +0200
commite87a37c806fe5d44861cc324019a7159b16a52fa (patch)
treeb2ee2eec4f801618ff15b5d468e01de43b858400
parentac93d943e916ec5d589a1f6cd9c15840dd9ca94b (diff)
full_IO args update
-rwxr-xr-xfull_IO/full_IO.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/full_IO/full_IO.sh b/full_IO/full_IO.sh
index f935e82..48acf20 100755
--- a/full_IO/full_IO.sh
+++ b/full_IO/full_IO.sh
@@ -16,20 +16,20 @@ scenario_cmd="sipp -inf users.csv -sf scenario.xml -i 127.0.0.1 -r 1.0 -d 1000 -
usage()
{
cat << EOF
-usage: $0 [OPTIONS] [-n NUMBER] -a ADDRESS
+usage: $0 [OPTIONS] ADDRESS
This script init a load_tester scenario and launch it. You should read the README file..
OPTIONS:
- -h Show this message
- -n The dial number, default is for the whole test
- -u Update the config files on the target (PCB) and host (XHD)
+ -h Show this message
+ -n=NUM The dial number, default is for the whole test
+ -u Update the config files on the target (PCB) and host (XHD)
ADDRESS:
The IP address last byte of the targeted PCB
EXAMPLE:
- $ $0 -u -n 13231411 -a 84
+ $ $0 -u -n=13231411 84
EOF
}
@@ -57,7 +57,7 @@ EOI
sudo /etc/init.d/asterisk restart
}
-while getopts ":hun:" OPTION
+while getopts ":hn:u" OPTION
do
case $OPTION in
h)
@@ -77,6 +77,8 @@ do
esac
done
+shift $(( OPTIND -1 ))
+
if [ ! $# -eq 1 ]
then
echo "$0 needs one ADDRESS, exiting"