X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Flinux%2Fping.py;h=6b5a249be77c0fb21045429df4829fce42b89aaa;hb=cb816db417dff4d0f985455c1d7cbd261fd40f9b;hp=eaee0dee751f73949d39975c489efc34bf8d4bcc;hpb=8f080d4ec78ff09753a3ce72bc2315889755a466;p=nepi.git diff --git a/examples/linux/ping.py b/examples/linux/ping.py index eaee0dee..6b5a249b 100644 --- a/examples/linux/ping.py +++ b/examples/linux/ping.py @@ -22,8 +22,11 @@ from nepi.execution.ec import ExperimentController ec = ExperimentController(exp_id = "ping-exp") +hostname = ## Add a string with the target hostname +username = ## Add a string with the username to SSH hostname + node = ec.register_resource("LinuxNode") -ec.set(node, "hostname", host) +ec.set(node, "hostname", hostname) ec.set(node, "username", username) ec.set(node, "cleanHome", True) ec.set(node, "cleanProcesses", True) @@ -38,5 +41,4 @@ ec.wait_finished(app) print ec.trace(app, "stdout") - ec.shutdown()