Changes between Initial Version and Version 1 of GEMINI/Tutorial/GEC18/GENI_Desktop_and_GEMINI_runcmd/ExecuteExperiment


Ignore:
Timestamp:
10/18/13 18:28:12 (10 years ago)
Author:
Jeanne Ohren
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEMINI/Tutorial/GEC18/GENI_Desktop_and_GEMINI_runcmd/ExecuteExperiment

    v1 v1  
     1Navigation: [wiki:GEMINI/Tutorial/GEC18/GENI_Desktop_and_GEMINI_runcmd Up]
     2
     3[[PageOutline]]
     4{{{
     5#!html
     6<h1> <font color="Blue">Running Your Software:</font> Load your software onto nodes and run commands on nodes </h1>
     7}}}
     8
     9
     10== Overview ==
     11
     12The goal of this exercise is to show you how to copy files from your local computer (e.g., laptop) to select nodes in
     13the topology.  We will also show you how to run commands on specified nodes in your topology.  This is particularly useful
     14if you want to quickly load your source code onto all (or some of) the nodes, compile it, and then run it.
     15
     16== Loading Files onto Nodes ==
     17
     18Clicking on the launcher [[Image(wiki:GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_runcmd/ExecuteExperiment:launcher.png)]] and selecting the '''File Upload''' module [[Image(wiki:GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_tables/ExecuteExperiment:launchermenu.png)]].  This module will allow you to copy files to the GENI Desktop.  From the GENI Desktop, the files can then be copied onto the nodes you select through the file upload window (see below).
     19
     20[[Image(wiki:GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_runcmd/ExecuteExperiment:fileuploadwindow.png)]]
     21
     22=== File Sets ===
     23
     24Users often find it useful to create a "file set" containing all their code and test data.  Having created a file set, the user then wants to load the file set onto a set of nodes in the topology.  Users often want to try their code on a variety of topologies.  As a result, we enable users to copy files from their local machine to the GENI Desktop server which will store them in directories (and subdirectories), thereby allowing users to create file sets that can be quickly loaded onto any topology they create.
     25
     26=== Copying File Sets to Nodes ===
     27
     28To copy a file set to a node(s), select the node(s) in the topology view and then click "Set Selection".  You can also select the destination directory on the nodes where you want the files to be placed.  After selecting the destination nodes, destination directory, and file set to copy, you can click "Copy Portal Files to Nodes" to copy the files onto the nodes.  A progress bar is displayed to show how much of the file set has been copied.
     29
     30== Running Commands on Nodes ==
     31
     32Again using the launcher, select the "Command" module which will open up a Run Command Window (see below).  Select the nodes on which you want to run a command using the topology viewer.  Type in the command you want to execute in the Run Command window and
     33press the "Run Command" button in the window.  This will open up new tab with the output from the command.
     34
     35[[Image(wiki:GEMINI/Tutorial/GEC17/GENI_Desktop_and_GEMINI_runcmd/ExecuteExperiment:runcmdwindow.png)]]
     36
     37
     38== __Exercise Tasks__ ==
     39
     40For the following exercise, if you do not have your own source code that you want to try, you can simply us the
     41following !HelloWorld.c program.
     42
     43{{{
     44   main() {
     45      printf("Hello World\n");
     46   }
     47}}}
     48
     49
     50 a. '''Task 1:''' Create a file set with your source code on the GENI Desktop.
     51 a. '''Task 2:''' Upload your source code to VM-0 and VM-1.
     52 a. '''Task 3:''' Compile your code on VM-0 and VM-1.
     53 a. '''Task 4:''' Run your compiled program on VM-0 and VM-1.