Version 3 (modified by 17 years ago) ( diff ) | ,
---|
Go back —> Tutorials
How to use execute an application on the nodes
This feature is only available in NodeHandler v4 and above.
Before going through this tutorial, you should know how to install a disk image.
You should also have installed a disk image with Node Agent v4 on the nodes of the testbed you are using (e.g. "baseline-7.11.ndz").
Goal
In this tutorial, you will learn a simple way to execute an application on the nodes of a testbed.
The tutorial experiment
This experiment is given in the attached script tut_app_1.rb.
This file contains extensive comments that should help you understand the different steps involved in running an application on the nodes of a testbed.
For more information on the basics of writing and using an experiment script, please refer to the previous tutorials, here and here.
To run this example script, use the following command:
nodehandler4 tut_app_1
(This assumes that you previously logged in to a testbed, and imaged its nodes with a disk image such as "baseline-7.11.ndz".)
The Results
The experiment screen output should then look like this. And the experiment log file should look like this.
NOTE: tcpdump output its user message on STDERR and not STDOUT, thus when running this tutorial script, please ignore false error messages such as: "ERROR nodeApp: tcpdump: listening on ath0, link-type EN10MB (Ethernet), capture size 96 bytes"
More…
If you would like to use the same application but with different parameters (or with parameters that you would like to dynamically change during the course of the experiment), then you should consider using a "prototype" around your application, as explained in this other tutorial.
Attachments (4)
- sb1_2007_11_19_23_19_08-Output.txt (989 bytes ) - added by 17 years ago.
- sb1_2007_11_19_23_19_08.log (10.8 KB ) - added by 17 years ago.
- tut_app_1.rb (2.7 KB ) - added by 17 years ago.
- tut_app_2.rb (3.2 KB ) - added by 17 years ago.
Download all attachments as: .zip