#
# ScenarioDescription PlotScript
scenario01.cfg scenario01.r
-scenario02.cfg scenario02.r
-scenario03.cfg scenario03.r
-scenario04.cfg scenario04.r
-scenario05.cfg scenario05.r
-scenario06.cfg scenario06.r
-scenario07.cfg scenario07.r
-scenario08.cfg scenario08.r
-scenario09.cfg scenario09.r
+#scenario02.cfg scenario02.r
+#scenario03.cfg scenario03.r
+#scenario04.cfg scenario04.r
+#scenario05.cfg scenario05.r
+#scenario06.cfg scenario06.r
+#scenario07.cfg scenario07.r
+#scenario08.cfg scenario08.r
+#scenario09.cfg scenario09.r
\ No newline at end of file
clients/hrk/parse_hrk.sh ${log_folder} ${log_file}
;;
"tribler_seeder")
- clients/tribler/parse_tribler.sh ${log_file}
+ clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
;;
"tribler_leecher")
- clients/tribler/parse_tribler.sh ${log_file}
+ clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
;;
"tribler_doe")
- clients/tribler/parse_tribler.sh ${log_file}
+ clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
;;
"tribler_proxy_01")
- clients/tribler/parse_tribler.sh ${log_file}
+ clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
;;
"tribler_proxy_02")
- clients/tribler/parse_tribler.sh ${log_file}
+ clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
;;
"tribler_proxy_03")
- clients/tribler/parse_tribler.sh ${log_file}
+ clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
;;
"tribler_proxy_04")
- clients/tribler/parse_tribler.sh ${log_file}
+ clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
;;
esac
}
# No / at the end is important for rsync to work properly
TEST_INFRASTRUCTURE_ABS_PATH="/home/george/P2P-Next/P2P-Testing-Infrastructure"
-# TRIBLER_REL_PATH is relative to ControlScripts/clients/<client-name> folder
-TRIBLER_REL_PATH="../../../../TriblerBranches/proxyservice-5.3"
+# TRIBLER_REL_PATH is relative to ControlScripts folder
+TRIBLER_REL_PATH="../../TriblerBranches/proxyservice-5.3"
TRIBLER_ABS_PATH="/home/george/P2P-Next/TriblerBranches/proxyservice-5.3"
# TRIBLER_UTIL_REL_PATH is relative to Util folder
# * starts a hrktorrent session - use LD_LIBRARY_PATH to point to
# libtorrent-rasterbar location
# * at the end deletes the downloaded data
+#
+# If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder
+#
# Read the global configuration file
# Check if the global configuration file exists
-if [ ! -e ../../../ConfigFiles/globalconfig ]; then
- echo "Warning: The global config file ../../../ConfigFiles/globalconfig does not exist."
+if [ ! -e ../ConfigFiles/globalconfig ]; then
+ echo "Warning: The global config file ../ConfigFiles/globalconfig does not exist."
else
- source ../../../ConfigFiles/globalconfig
+ source ../ConfigFiles/globalconfig
fi
# Read the node-specific configuration file (TORRENT_FILE)
# Check if the node-specific configuration file exists
-if [ ! -e ../../../ClientWorkingFolders/TmpLogs/node_config ]; then
- echo "Warning: The global config file ../../../ClientWorkingFolders/TmpLogs/node_config does not exist."
+if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
+ echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
else
- source ../../../ClientWorkingFolders/TmpLogs/node_config
+ source ../ClientWorkingFolders/TmpLogs/node_config
fi
cd $WORKING_FOLDER_REL_PATH/Regular/
# * starts a hrktorrent session - use LD_LIBRARY_PATH to point to
# libtorrent-rasterbar location
# * at the end deletes the downloaded data
+#
+# If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder
+#
# Read the global configuration file
# Check if the global configuration file exists
-if [ ! -e ../../../ConfigFiles/globalconfig ]; then
- echo "Warning: The global config file ../../../ConfigFiles/globalconfig does not exist."
+if [ ! -e ../ConfigFiles/globalconfig ]; then
+ echo "Warning: The global config file ../ConfigFiles/globalconfig does not exist."
else
- source ../../../ConfigFiles/globalconfig
+ source ../ConfigFiles/globalconfig
fi
# Read the node-specific configuration file (TORRENT_FILE)
# Check if the node-specific configuration file exists
-if [ ! -e ../../../ClientWorkingFolders/TmpLogs/node_config ]; then
- echo "Warning: The global config file ../../../ClientWorkingFolders/TmpLogs/node_config does not exist."
+if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
+ echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
else
- source ../../../ClientWorkingFolders/TmpLogs/node_config
+ source ../ClientWorkingFolders/TmpLogs/node_config
fi
cd $WORKING_FOLDER_REL_PATH/TorrentsAndData/
# * changes current working directory to proxyservice-m32
# * starts a tribler cmd-line instance with the supplied .torrent file. The .torrent file must be located in the TorrentsAndData folder
# * at the end deletes the downloaded data
+#
+# If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder
+#
# Read the global configuration file
# Check if the global configuration file exists
-if [ ! -e ../../../ConfigFiles/globalconfig ]; then
- echo "Warning: The global config file ../../../ConfigFiles/globalconfig does not exist."
+if [ ! -e ../ConfigFiles/globalconfig ]; then
+ echo "Warning: The global config file ../ConfigFiles/globalconfig does not exist."
else
- source ../../../ConfigFiles/globalconfig
+ source ../ConfigFiles/globalconfig
fi
# Read the node-specific configuration file (TORRENT_FILE)
# Check if the node-specific configuration file exists
-if [ ! -e ../../../ClientWorkingFolders/TmpLogs/node_config ]; then
- echo "Warning: The global config file ../../../ClientWorkingFolders/TmpLogs/node_config does not exist."
+if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
+ echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
else
- source ../../../ClientWorkingFolders/TmpLogs/node_config
+ source ../ClientWorkingFolders/TmpLogs/node_config
fi
export PYTHONPATH=$PYTHONPATH:.
# * changes current working directory to proxyservice-m32
# * starts a tribler cmd-line instance with the supplied .torrent file. The .torrent file must be located in the TorrentsAndData folder
# * at the end deletes the downloaded data
+#
+# If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder
+#
# Read the global configuration file
# Check if the global configuration file exists
-if [ ! -e ../../../ConfigFiles/globalconfig ]; then
- echo "Warning: The global config file ../../../ConfigFiles/globalconfig does not exist."
+echo "pwd=$(pwd)"
+if [ ! -e ../ConfigFiles/globalconfig ]; then
+ echo "Warning: The global config file ../ConfigFiles/globalconfig does not exist."
else
- source ../../../ConfigFiles/globalconfig
+ source ../ConfigFiles/globalconfig
fi
# Read the node-specific configuration file (TORRENT_FILE)
# Check if the node-specific configuration file exists
-if [ ! -e ../../../ClientWorkingFolders/TmpLogs/node_config ]; then
- echo "Warning: The global config file ../../../ClientWorkingFolders/TmpLogs/node_config does not exist."
+if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
+ echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
else
- source ../../../ClientWorkingFolders/TmpLogs/node_config
+ source ../ClientWorkingFolders/TmpLogs/node_config
fi
export PYTHONPATH=$PYTHONPATH:.
#
# Script arguments:
# * proxy number [1-4]
+#
+# If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder
+#
if [ ! $# -eq 1 ]; then
echo "usage: $0 proxy-no"
# Read the global configuration file
# Check if the global configuration file exists
-if [ ! -e ../../../ConfigFiles/globalconfig ]; then
- echo "Warning: The global config file ../../../ConfigFiles/globalconfig does not exist."
+if [ ! -e ../ConfigFiles/globalconfig ]; then
+ echo "Warning: The global config file ../ConfigFiles/globalconfig does not exist."
else
- source ../../../ConfigFiles/globalconfig
+ source ../ConfigFiles/globalconfig
fi
# Read the node-specific configuration file
# Check if the node-specific configuration file exists
-if [ ! -e ../../../ClientWorkingFolders/TmpLogs/node_config ]; then
- echo "Warning: The global config file ../../../ClientWorkingFolders/TmpLogs/node_config does not exist."
+if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
+ echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
else
- source ../../../ClientWorkingFolders/TmpLogs/node_config
+ source ../ClientWorkingFolders/TmpLogs/node_config
fi
# Read arguments
# The script
# * changes current working directory to proxyservice-m32
# * starts a command line BT client seeding the supplied .torrent file. The .torrent file must be located in the TorrentsAndData folder
+#
+# If you run this script manually, you must run it from the P2P-Testing-Infrastructure/ControlScripts folder
+#
# Read the global configuration file
# Check if the global configuration file exists
-if [ ! -e ../../../ConfigFiles/globalconfig ]; then
- echo "Warning: The global config file ../../../ConfigFiles/globalconfig does not exist."
+echo "pwd=$(pwd)"
+if [ ! -e ../ConfigFiles/globalconfig ]; then
+ echo "Warning: The global config file ../ConfigFiles/globalconfig does not exist."
else
- source ../../../ConfigFiles/globalconfig
+ source ../ConfigFiles/globalconfig
fi
# Read the node-specific configuration file (TORRENT_FILE)
# Check if the node-specific configuration file exists
-if [ ! -e ../../../ClientWorkingFolders/TmpLogs/node_config ]; then
- echo "Warning: The global config file ../../../ClientWorkingFolders/TmpLogs/node_config does not exist."
+if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
+ echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
else
- source ../../../ClientWorkingFolders/TmpLogs/node_config
+ source ../ClientWorkingFolders/TmpLogs/node_config
fi
source ../ClientWorkingFolders/TmpLogs/node_config
fi
-./bw_limit_ct.sh set ${IFACE} ${DL_BW} ${DL_BURST} ${UL_BW} ${UL_BURST}
+./bw_limit.sh set ${IFACE} ${DL_BW} ${DL_BURST} ${UL_BW} ${UL_BURST}
while IFS=$'\t' read SERVER PORT USER REMOTE_PATH REMOTE_IF DL_BW DL_BURST UL_BW UL_BURST PRE_RUN_SCRIPT POST_RUN_SCRIPT CLIENT_TYPE TORRENT_FILE PERIODS; do
echo " ** Cleaning-up $SERVER:$PORT"
+ # Create node config file
+ if ! ssh -n -p ${PORT} ${USER}@${SERVER} "
+cat > $REMOTE_PATH/P2P-Testing-Infrastructure/ClientWorkingFolders/TmpLogs/node_config << END
+IFACE=\"${REMOTE_IF}\"
+DL_BW=\"${DL_BW}\"
+DL_BURST=\"${DL_BURST}\"
+UL_BW=\"${UL_BW}\"
+UL_BURST=\"${UL_BURST}\"
+PRE_RUN_SCRIPT=\"${PRE_RUN_SCRIPT}\"
+POST_RUN_SCRIPT=\"${POST_RUN_SCRIPT}\"
+CLIENT_TYPE=\"${CLIENT_TYPE}\"
+TORRENT_FILE=\"${TORRENT_FILE}\"
+PERIODS=\"${PERIODS}\"
+END
+" &>> ${ERR_LOG}; then
+ echo "Error: cannot create scenario config file"
+ exit 1
+ fi
+
# stopping the client on the server
# -n is used to redirect the ssh stdin from /dev/null, in order to keep the stdin in place for the read command
if ! ssh -n -p $PORT ${USER}@${SERVER} "cd $REMOTE_PATH/P2P-Testing-Infrastructure/ControlScripts; ./stop_client.sh" &>> $ERR_LOG; then