X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Flinux%2Fping.py;h=6b5a249be77c0fb21045429df4829fce42b89aaa;hb=c1be7f6424e50788032ba75100ba4d8e322cb548;hp=eaee0dee751f73949d39975c489efc34bf8d4bcc;hpb=8142962e1ddc0e587b32832cec0b726e6307a332;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()