143 | | $ ls |
144 | | click-example.rspec four-nodes.rspec islands.rspec README.txt two-nodes-iperf.rspec |
145 | | example-scripts install-example.rspec out.log three-nodes-lan.rspec |
146 | | }}} |
147 | | 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 | $ ls |
| 144 | example-scripts install-example.rspec README.txt two-nodes-iperf.rspec |
| 145 | four-nodes.rspec islands.rspec three-nodes-lan.rspec two-nodes-iperf.rspec~ |
| 146 | $ |
| 147 | }}} |
| 148 | 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 following figure illustrates the resources requested by this rspec. |
| 149 | |
| 150 | |
| 151 | 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}}}. |