X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fplanetlab%2Fccn%2Ftwo_nodes_file_retrieval.py;h=57c58089bff00374b85a863616e2365c3abd80dd;hb=bac63fdc5983e2ade1902f711c1e7899d82ca4ae;hp=096268f7465aff13c75b499ac061bb4adcc9c771;hpb=74bb6c4d720bab1e65a71db74525a1bf55cfcb2d;p=nepi.git diff --git a/examples/planetlab/ccn/two_nodes_file_retrieval.py b/examples/planetlab/ccn/two_nodes_file_retrieval.py index 096268f7..57c58089 100644 --- a/examples/planetlab/ccn/two_nodes_file_retrieval.py +++ b/examples/planetlab/ccn/two_nodes_file_retrieval.py @@ -36,8 +36,11 @@ pl_pass = ######## <<< ASSIGN the password used to login to the PlanetLab websit pl_ssh_key = ####### <<< ASSING the absolute path to the private SSH key used for Planetlab >>> slicename = ####### <<< ASSING the PlanetLab slicename >>> +results_dir = "/tmp/demo_CCN_results" + ## Create the experiment controller -ec = ExperimentController(exp_id = "demo_CCN") +ec = ExperimentController(exp_id = "demo_CCN", + local_dir = results_dir) ## Register node 1 node1 = ec.register_resource("PlanetlabNode") @@ -137,16 +140,13 @@ ec.register_connection(app, ccnd2) # Register a collector to automatically collect the ccnd logs # to a local directory -results_dir = "/tmp/demo_CCN_results" col1 = ec.register_resource("Collector") ec.set(col1, "traceName", "stderr") -ec.set(col1, "storeDir", results_dir) ec.set(col1, "subDir", hostname1) ec.register_connection(col1, ccnd1) col2 = ec.register_resource("Collector") ec.set(col2, "traceName", "stderr") -ec.set(col2, "storeDir", results_dir) ec.set(col2, "subDir", hostname2) ec.register_connection(col2, ccnd2)