Changes between Version 31 and Version 32 of GiB-gettingStarted
- Timestamp:
- 10/02/12 17:55:06 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GiB-gettingStarted
v31 v32 130 130 Before we run an experiment we need to acquire the resources needed the experiment. Our introductory experiment will consist of two hosts connected to one another by a single link. When the hosts come up they execute a script provided by us that: 131 131 * Downloads and installs iperf on each host. 132 * Runs iperf in server mode on one host and and in client mode on the other host. The outputs of the iperf commands are written to / tmp/iperf-server.log and /tmp/iperf-client.log on the respective hosts.132 * Runs iperf in server mode on one host and and in client mode on the other host. The outputs of the iperf commands are written to /var/www/html/iperf-server.log and /var/www/html/iperf-client.log on the respective hosts. 133 133 As a part of this experiment we will ssh into these hosts to view these logs. 134 134 … … 140 140 example-scripts install-example.rspec out.log three-nodes-lan.rspec 141 141 }}} 142 We'll use the rspec file called two-nodes-iperf.rspec. You can view it [attachment:two-nodes-iperf.rspec here] or inside the VM. This rspec requests two hosts called {{{left}}} and {{{right}}}. Host {{{left}}} has one interface called {{{left:if0}}} and host {{{right}}} has one interface called {{{right:if0}}}. The two interfaces are connected by a link called {{{left-right-lan}}}. The {{{<install>}}} element in the rspec asks the GENI-in-a-Box aggregate manager to download a [attachment:iperf- execute-script.sh script] from the specified URL, uncompress and untar it, and save it in the /local directory. The {{{<execute>}}} element asks the aggregate to execute the specified script when the hosts come up. In this case the script to be executed is the one that was installed in {{{/local}}}.142 We'll use the rspec file called two-nodes-iperf.rspec. You can view it [attachment:two-nodes-iperf.rspec here] or inside the VM. This rspec requests two hosts called {{{left}}} and {{{right}}}. Host {{{left}}} has one interface called {{{left:if0}}} and host {{{right}}} has one interface called {{{right:if0}}}. The two interfaces are connected by a link called {{{left-right-lan}}}. The {{{<install>}}} element in the rspec asks the GENI-in-a-Box aggregate manager to download a [attachment:iperf-script.sh script] from the specified URL, uncompress and untar it, and save it in the /local directory. The {{{<execute>}}} element asks the aggregate to execute the specified script when the hosts come up. In this case the script to be executed is the one that was installed in {{{/local}}}. 143 143 144 144 The following steps will walk us through acquiring the resources for our experiment: