Changes between Version 17 and Version 18 of Old/orbitHandler


Ignore:
Timestamp:
Aug 23, 2006, 4:40:47 PM (18 years ago)
Author:
cmdavies
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/orbitHandler

    v17 v18  
    6060The following is an example of a script that can be used to run a repeatable experiment:
    6161
     62You can debug your experiment in the sandboxes by having a node set file that contains only the two nodes, and when you want to run it in the main grid, simply update the nodeset file.
     63
    6264{{{
    6365# script to run the experiment
    6466
    6567# image the nodes
    66 ./orbitImage nodeList baseline.ndz
     68./orbitImage nodeset baseline.ndz
    6769
    6870# wait until all the experiment nodes have booted
    69 ./orbitPower nodeList on
     71./orbitPower nodeset on
    7072
    7173# Configure my wireless interfaces
    72 ./orbitRunWait nodeList "iwconfig ath0 essid 'oontest'"
    73 ./orbitRunWait nodeList "iwconfig ath0 channel 1"
    74 ./orbitRunWait nodeList "iwconfig ath0 mode 'ad-hoc'"
    75 ./orbitRunWait nodeList "iwconfig ath0 rate '11M'"
    76 ./orbitRunWait nodeList "ifconfig ath0 192.168.%x.%y"
     74./orbitRunWait nodeset "iwconfig ath0 essid 'oontest'"
     75./orbitRunWait nodeset "iwconfig ath0 channel 1"
     76./orbitRunWait nodeset "iwconfig ath0 mode 'ad-hoc'"
     77./orbitRunWait nodeset "iwconfig ath0 rate '11M'"
     78./orbitRunWait nodeset "ifconfig ath0 192.168.%x.%y"
    7779
    7880# Copy the latest version of my application to each node
    79 ./orbitPutFile nodeList myApp /root
     81./orbitPutFile nodeset myApp /root
    8082
    8183# Run my app on each experiment node, but don’t block
    82 ./orbitRun nodeList "./myApp -i ath0"
     84./orbitRun nodeset "./myApp -i ath0"
    8385
    8486# delay while it does its thing
     
    8688
    8789# Some random command to ping every node from the console
    88 ./orbitCmd nodeList "ping node%x-%y"
     90./orbitCmd nodeset "ping node%x-%y"
    8991
    9092# Kill off all the instances of my app running on the nodes
    91 ./orbitKillAll nodeList "./myApp -i ath0"
     93./orbitKillAll nodeset "./myApp -i ath0"
    9294
    9395# copy and merge the logs from each node into one file on the console
    9496# this merged file can then be processed by your data analysis tools
    95 ./orbitGetFileMerged nodelist ./route_logs.csv
    96 ./orbitGetFileMerged nodelist ./error_rates.csv
     97./orbitGetFileMerged nodeset ./route_logs.csv
     98./orbitGetFileMerged nodeset ./error_rates.csv
    9799
    98100# shutdown the nodes in the experiment
    99 ./orbitPower nodeList off
     101./orbitPower nodeset off
    100102}}}
    101103