Changes between Version 27 and Version 28 of GENIExperimenter/Tutorials/jacks/GettingStarted_PartII_ndn/Procedure/Setup


Ignore:
Timestamp:
06/17/16 16:25:22 (3 years ago)
Author:
tteixeir@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/jacks/GettingStarted_PartII_ndn/Procedure/Setup

    v27 v28  
    149149=== 3.1 Create a slice ===
    150150 
    151 Create a slice using `omni` and the slice name of your choice.  From now on that slice name will be referred to as `LabOne`.
    152 {{{
    153 $ omni createslice LabOne
     151Create a slice using `omni` and the slice name of your choice.  From now on that slice name will be referred to as <SLICE_NAME>.
     152{{{
     153$ omni createslice <SLICE_NAME>
    154154}}}
    155155 
     
    199199 
    200200
    201 === 3.3. Export your RSpec ===
     201
     202 
     203 
     204 === 3.3. Modify the RSpec to automatically install and execute CCNX software ===
     205 
     206'''Background:''' For this experiment, we need to install the following software on the nodes:
     207   * The CCNX software (ccnx-0.6.2.tar.gz)
     208   * Scripts that set up the CCNX software (ccnx-setup.tar.gz)
     209   * Scripts used to pull atmospheric precipitation data using the CCNX protocol (ccnx-atmos.tar.gz)
     210 
     211When the nodes start up, we need the following scripts to be executed:
     212   * Script that sets up the node (node-setup)
     213   * Script that sets up the ccnx protocol (ccnx-setup)
     214   * Script that setup up ccnx protocol routes (add-precip-routes)
     215 
     216In the following steps we automate the installation and running of the software using install and execute scripts in the RSpec. 
     217 
     218{{{
     219#!html
     220<table><tr>
     221<td colspan=2>
     222  <ol type='a'>
     223     <li>Click on the <b>collab node</b> (see figure) to manipulate details of the node configuration.
     224 
     225 
     226<table id="Table_01" border="0" cellpadding="5" cellspacing="0">
     227        <tr>
     228                <td>
     229                        <img src="http://trac.gpolab.bbn.com/gcf/raw-attachment/wiki/Graphics/4NotesIcon_512x512.png" width="50" height="50" alt="Note">
     230               </td>
     231<td>
     232When you open the node information, you should see a new pane with fields to fill in like
     233in the figure.   
     234</td>
     235        </tr>
     236</table>
     237 
     238 
     239     </li>
     240 </ol>
     241</td>
     242 
     243<td colspan=2>
     244  <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JacksLab1_5.png?format=raw" width='500'/>
     245     <br />
     246     <b>Figure 3-2</b> <i>Edit the nodes</i>
     247</td>
     248</tr>
     249</table>
     250 
     251<table>
     252<tr><td>
     253  <ol type='a' start='2'>
     254 
     255<li>The way we will request installation of the proper software and execution
     256of our experiment is to add <i>install</i> and <i>execute</i> services.
     257</li>
     258</td>
     259<td>
     260<img width='500' src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JacksLab1_6.png?format=raw" />
     261     <br />
     262     <b>Figure 3-3</b> <i>Specify the install and execute scripts </i>
     263</td></tr>
     264 
     265 
     266</table>
     267 
     268<table>
     269 
     270<tr>
     271<td colspan=2>
     272<ol  type='a' start='3'>
     273<li>
     274You will be adding three install scripts.  First, select "<tt>Add</tt>" under the <b>Install Scripts</b> sections as shown.  In the box in the <b>URL</b> field enter (cut-and-paste): <br>
     275<pre>http://www.gpolab.bbn.com/experiment-support/LabOne/ccnx/ccnx-0.6.2.tar.gz</pre>
     276and enter
     277<pre>/</pre>
     278in the box under it (labeled 'Install Path:').
     279<br>
     280<br>
     281Now, select "<tt>Add</tt>" under the <b>Install Scripts</b> again.  This time add: <br>
     282<pre>http://www.gpolab.bbn.com/experiment-support/LabOne/ccnx/ccnx-atmos.tar.gz</pre>
     283and enter <br>
     284<pre>/</pre>
     285in the box under it (labeled 'Install Path:').
     286<br>
     287<br>
     288Similarly, add a third install service: 
     289<pre>http://www.gpolab.bbn.com/experiment-support/LabOne/ccnx/ccnx-setup.tar.gz</pre>
     290and enter <br>
     291<pre>/tmp</pre>
     292in the box under it (labeled 'Install Path:').  <strong> Note the different install directory this time. </strong>
     293<br>
     294<br>
     295 
     296  <li>In a similar manner, use the "<tt>Add</tt>" button under the <b>Execute Scripts</b> section to add three execute services on this node:
     297<br>
     298<pre>
     299cd /tmp/ccnx-setup &&  ./node-setup
     300cd /tmp/ccnx-setup &&  ./add-precip-routes rsrchr
     301cd /tmp/ccnx-setup && ./ccnx-setup router 4
     302</pre>
     303  </li>
     304 
     305<table border="0" cellpadding="0" cellspacing="0"><tr><td><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/warning-icon-hi.png?format=raw" width='50' height='50'/></td><td>Be very careful when entering this information -- these commands will not
     306be executed yet, so it will be some time before you will see any relevant
     307error messages if there is a mistake here.</td></tr></table>
     308   </li> 
     309                </ol> 
     310                </table> 
     311
     312<table>
     313<tr><td>
     314  <ol type='a' start='5'>
     315  <li> You <i> DO NOT </i> have to specify install and execute scripts for the other nodes as they have already been done for you.  You can check this by clicking on the icons for these nodes. </li>
     316 
     317   
     318</ol>
     319</td>
     320</tr>
     321 
     322</table>
     323}}}
     324
     325=== 3.4. Export your RSpec ===
    202326Now we will pull back some of the covers and inspect exactly what Jacks has been doing for us when preparing the RSpecs for the experiments we design.  Each node and link has a corresponding element in the RSpec, and the details of the component configuration (such as the install and execute services) are specified with attributes, or sometimes child elements, within those portions of the document.
    203327 
     
    235359</table>
    236360}}}
    237  
    238  
    239  
    240 === 3.4. Instantiate the new experiment using Omni ===
     361
     362=== 3.5. Instantiate the new experiment using Omni ===
    241363 
    242364For this step, we'll change the approach a bit and switch to a new client tool, the command line Omni client.