wiki:GENIExperimenter/Tutorials/GENIDesktop/GEC23/GENI_Desktop_and_GEMINI_runcmd

Navigation: Back

Running Your Software: Load your software onto nodes and run commands on nodes

Overview

The goal of this exercise is to show you how to copy files from your local computer (e.g., laptop) to select nodes in the topology. We will also show you how to run commands on specified nodes in your topology. This is particularly useful if you want to quickly load your source code onto all (or some of) the nodes, compile it, and then run it.

Loading Files onto Nodes

The File Upload module will allow you to upload a file or a groups of files (we call fileset) to a user-selected destination directory on one or multiple nodes in your slice. In order to do this the user first uploads the files to the GENIDesktop Cloud. When satisfied with the set of files, user can then select the node/nodes you want these files distributed to.

  1. Click on the File upload button from the list of buttons in the top left of the page.
  2. In the small window that shows ups, Click on the folder Directory listing and select the folder you want the files uploaded to. This is a temporary location at the GENIDesktop where we store the uploaded files. (You can create directories and store uploaded files in different directories for later distribution)
  3. Once you have selected a temporary folder location, Click on the Browse button in the right column and select the files you want to upload.
  4. Once your files have been selected, Click on the Upload Files to GENI Cloud button. These files should then show up in the left column under the folder you uploaded to.
  5. Select the node/nodes on which you want to upload your files to from the logical view . Then click on the Set Selected Node button. Make sure you see your selected nodes listed below that button. In the To text box, type in the destination location you want to upload these files to. This location should be a directory that exists on all the nodes in your slice.
  6. Click on the Distribute button. You should see a progress bar for the upload progress.

Running Commands on Nodes

Select the node/nodes on which you want run your command. Then click on the Command button. In the small window that shows up as shown in the figure below, click on the Set Selection button. Make sure you see your selected nodes listed below that button. Then type in the command you would like to run. You can join multiple commands separated by a ;. (Commands are executed in a bash shell)

Once the commands are run, you will see the results of the commands pop up in a new browser tab/window. (See figure below)

]

Exercise Tasks

For the following exercise, if you do not have your own source code that you want to try, you can simply us the following HelloWorld.c program.

   main() { 
      printf("Hello World\n"); 
   }
  1. Task 1: Create a file set with your source code on the GENI Desktop.
  2. Task 2: Upload your source code to Node-0 and Node-1.
  3. Task 3: Compile your code on Node-0 and Node-1.
  4. Task 4: Run your compiled program on Node-0 and Node-1.
Last modified 9 years ago Last modified on 06/08/15 17:18:34