X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Flinux%2Fping.py;h=0b8715afb5b124b812b48a0f219c92af9c2d876c;hb=d50ba1a08e541ded7a8b322493ebb1d0cc59c6ff;hp=9e67f580e38edd494f41a7c22dfd6805ac5a0d57;hpb=19e3969ca3da5eb9da00d2a0cc256eee2eb70533;p=nepi.git diff --git a/examples/linux/ping.py b/examples/linux/ping.py index 9e67f580..0b8715af 100644 --- a/examples/linux/ping.py +++ b/examples/linux/ping.py @@ -18,6 +18,12 @@ # # Author: Alina Quereilhac +# Example of how to run this experiment (replace with your information): +# +# $ cd +# python examples/linux/ping.py -a -u -i + + from nepi.execution.ec import ExperimentController from optparse import OptionParser, SUPPRESS_HELP @@ -41,14 +47,14 @@ ssh_key = options.ssh_key ec = ExperimentController(exp_id = "ping-exp") -node = ec.register_resource("LinuxNode") +node = ec.register_resource("linux::Node") ec.set(node, "hostname", hostname) ec.set(node, "username", username) ec.set(node, "identity", ssh_key) -ec.set(node, "cleanHome", True) +ec.set(node, "cleanExperiment", True) ec.set(node, "cleanProcesses", True) -app = ec.register_resource("LinuxApplication") +app = ec.register_resource("linux::Application") ec.set(app, "command", "ping -c3 nepi.inria.fr") ec.register_connection(app, node)