Changes between Version 17 and Version 18 of Old/orbitHandler
- Timestamp:
- Aug 23, 2006, 4:40:47 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/orbitHandler
v17 v18 60 60 The following is an example of a script that can be used to run a repeatable experiment: 61 61 62 You 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 62 64 {{{ 63 65 # script to run the experiment 64 66 65 67 # image the nodes 66 ./orbitImage node List baseline.ndz68 ./orbitImage nodeset baseline.ndz 67 69 68 70 # wait until all the experiment nodes have booted 69 ./orbitPower node List on71 ./orbitPower nodeset on 70 72 71 73 # Configure my wireless interfaces 72 ./orbitRunWait node List "iwconfig ath0 essid 'oontest'"73 ./orbitRunWait node List "iwconfig ath0 channel 1"74 ./orbitRunWait node List "iwconfig ath0 mode 'ad-hoc'"75 ./orbitRunWait node List "iwconfig ath0 rate '11M'"76 ./orbitRunWait node List "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" 77 79 78 80 # Copy the latest version of my application to each node 79 ./orbitPutFile node List myApp /root81 ./orbitPutFile nodeset myApp /root 80 82 81 83 # Run my app on each experiment node, but don’t block 82 ./orbitRun node List "./myApp -i ath0"84 ./orbitRun nodeset "./myApp -i ath0" 83 85 84 86 # delay while it does its thing … … 86 88 87 89 # Some random command to ping every node from the console 88 ./orbitCmd node List "ping node%x-%y"90 ./orbitCmd nodeset "ping node%x-%y" 89 91 90 92 # Kill off all the instances of my app running on the nodes 91 ./orbitKillAll node List "./myApp -i ath0"93 ./orbitKillAll nodeset "./myApp -i ath0" 92 94 93 95 # copy and merge the logs from each node into one file on the console 94 96 # this merged file can then be processed by your data analysis tools 95 ./orbitGetFileMerged node list ./route_logs.csv96 ./orbitGetFileMerged node list ./error_rates.csv97 ./orbitGetFileMerged nodeset ./route_logs.csv 98 ./orbitGetFileMerged nodeset ./error_rates.csv 97 99 98 100 # shutdown the nodes in the experiment 99 ./orbitPower node List off101 ./orbitPower nodeset off 100 102 }}} 101 103