diff options
Diffstat (limited to 'src/ns3/g5k-root.sh')
| -rwxr-xr-x | src/ns3/g5k-root.sh | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/ns3/g5k-root.sh b/src/ns3/g5k-root.sh index 92903ee..332558c 100755 --- a/src/ns3/g5k-root.sh +++ b/src/ns3/g5k-root.sh @@ -12,7 +12,6 @@ logsFinalDst=~/logs/ [ "$1" == "subscribe" ] && subscribe=1 ||subscribe=0 [ "$1" == "deploy" ] && deploy=1 || deploy=0 [ "$1" == "-p" ] && progress=1 || progress=0 -[ "$1" == "scan" ] && scan=1 || scan=0 handleSim () { [ -z "${argId}" ] && argId=1 || argId=$(( argId + 1 )) @@ -66,7 +65,7 @@ then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${NS3_PATH}/build/lib # Default Parameters - sensorsSendInterval=1 # DON'T GO BELOW 1 SECONDS !!!!!!! Simulator will stay stuck + sensorsSendInterval=10 # DON'T GO BELOW 1 SECONDS !!!!!!! Simulator will stay stuck sensorsPktSize=192 # 1 byte temperature (-128 à +128 °C) and 4Byte sensorsId sensorsNumber=5 nbHop=10 # Cf paper AC/Yunbo @@ -120,7 +119,7 @@ then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${NS3_PATH}/build/lib # Default Parameters - sensorsSendInterval=1 # DON'T GO BELOW 1 SECONDS !!!!!!! Simulator will stay stuck + sensorsSendInterval=10 # DON'T GO BELOW 1 SECONDS !!!!!!! Simulator will stay stuck sensorsPktSize=192 # 1 byte temperature (-128 à +128 °C) and 4Byte sensorsId sensorsNumber=5 nbHop=10 # Cf paper AC/Yunbo @@ -177,7 +176,7 @@ then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${NS3_PATH}/build/lib # Default Parameters - sensorsSendInterval=1 # DON'T GO BELOW 1 SECONDS !!!!!!! Simulator will stay stuck + sensorsSendInterval=10 # DON'T GO BELOW 1 SECONDS !!!!!!! Simulator will stay stuck sensorsPktSize=192 # 1 byte temperature (-128 à +128 °C) and 4Byte sensorsId sensorsNumber=5 nbHop=10 # Cf paper AC/Yunbo @@ -254,13 +253,6 @@ then alreadyFinished=$(cat $finishedFile| tail -n +2| wc -l) percent=$(echo $alreadyFinished $nHost| awk '{print $1/$2*100}') echo "Progression: " $alreadyFinished/$nHost "(${percent}%)" -elif [ $scan -eq 1 ] -then - for host in $(cat $OAR_NODE_FILE|uniq) - do - proc=$(oarsh $host "ps -e|grep -i simulator") - [ ! -z "$proc" ] && { echo "- Processes for node $host:"; echo "$proc"; } - done else echo "Invalid arguments, make sure you know what you are doing !" exit 1 |
