| 8 | | This experiment is given in the attached script [attachment:wimax-tutorial2.rb wimax-tutorial2.rb]. |
| | 8 | This experiment is given in the attached script [attachment:wimax-tutorial2.rb wimax-tutorial2.rb]. Download this file to your home directory. |
| | 9 | |
| | 10 | To run this experiment: |
| | 11 | |
| | 12 | 1. ssh into sandbox 7 |
| | 13 | {{{ |
| | 14 | nilanjan@external2:~$ ssh sb7.orbit-lab.org |
| | 15 | }}} |
| | 16 | |
| | 17 | 2. Image node1-1 & node1-2 with wimax.ndz (this should be in the repository) |
| | 18 | {{{ |
| | 19 | nilanjan@console.sb7:~$ omf-5.2 load [1,1..2] wimax.ndz |
| | 20 | }}} |
| | 21 | |
| | 22 | The output of the imaging command should look similar to the following: |
| | 23 | {{{ |
| | 24 | nilanjan@console.sb7:~$ omf-5.2 load [1,1..2] wimax.ndz |
| | 25 | Imaging nodes: '[1,1..2]' with image 'wimax.ndz' |
| | 26 | (Domain: default from hostname) |
| | 27 | (Timeout: 800 sec.) |
| | 28 | INFO NodeHandler: init OMF Experiment Controller 5.2.408 |
| | 29 | INFO NodeHandler: init Experiment ID: sb7.orbit-lab.org_2011_09_14_15_07_41 |
| | 30 | INFO NodeHandler: Web interface available at: http://10.17.0.10:4000 |
| | 31 | INFO Experiment: load system:exp:stdlib |
| | 32 | INFO property.resetDelay: value = 70 (Fixnum) |
| | 33 | INFO property.resetTries: value = 1 (Fixnum) |
| | 34 | INFO Experiment: load system:exp:imageNode |
| | 35 | INFO property.nodes: value = [1, 1..2] (Array) |
| | 36 | INFO property.image: value = "wimax.ndz" (String) |
| | 37 | INFO property.domain: value = nil (NilClass) |
| | 38 | INFO property.outpath: value = "/tmp" (String) |
| | 39 | INFO property.timeout: value = 800 (Fixnum) |
| | 40 | INFO stdlib: Waiting for nodes (Up/Down/Total): 0/2/2 - (still down: n_1_1,n_1_2) |
| | 41 | INFO stdlib: Waiting for nodes (Up/Down/Total): 0/2/2 - (still down: n_1_1,n_1_2) |
| | 42 | INFO stdlib: Waiting for nodes (Up/Down/Total): 0/2/2 - (still down: n_1_1,n_1_2) |
| | 43 | INFO stdlib: Waiting for nodes (Up/Down/Total): 0/2/2 - (still down: n_1_1,n_1_2) |
| | 44 | INFO whenAll: *: 'status[@value='UP']' fires |
| | 45 | INFO exp: Progress(0/0/2): 10/10/10 min(n_1_1)/avg/max (40) - Timeout: 750 sec. |
| | 46 | INFO exp: Progress(0/0/2): 40/40/40 min(n_1_1)/avg/max (40) - Timeout: 740 sec. |
| | 47 | INFO exp: Progress(0/0/2): 60/60/60 min(n_1_1)/avg/max (40) - Timeout: 730 sec. |
| | 48 | INFO exp: Progress(0/0/2): 70/75/80 min(n_1_1)/avg/max (40) - Timeout: 720 sec. |
| | 49 | INFO exp: Progress(0/0/2): 90/90/90 min(n_1_1)/avg/max (40) - Timeout: 710 sec. |
| | 50 | INFO exp: Progress(2/0/2): 100/100/100 min()/avg/max (40) - Timeout: 700 sec. |
| | 51 | INFO exp: ----------------------------- |
| | 52 | INFO exp: Imaging Process Done |
| | 53 | INFO exp: - 2 node(s) successfully imaged - See the topology file: '/tmp/sb7.orbit-lab.org_2011_09_14_15_07_41_topo_active.rb' |
| | 54 | INFO exp: ----------------------------- |
| | 55 | INFO Experiment: DONE! |
| | 56 | INFO NodeHandler: Shutting down experiment, please wait... |
| | 57 | INFO NodeHandler: Shutdown flag is set - Turning Off the resources |
| | 58 | INFO run: Experiment sb7.orbit-lab.org_2011_09_14_15_07_41 finished after 1:41 |
| | 59 | }}} |
| | 60 | |
| | 61 | 3. Once the imaging process is complete, we need to turn the nodes on |
| | 62 | {{{ |
| | 63 | nilanjan@console.sb7:~$ omf-5.2 tell on [1,1..2] |
| | 64 | }}} |
| | 65 | |
| | 66 | 4. Run the experiment script (from above) |
| | 67 | {{{ |
| | 68 | nilanjan@console.sb7:~$ omf-5.2 exec wimax-tutorial2.ndz |
| | 69 | }}} |
| | 70 | |
| | 71 | The output of the experiment script should be similar to the following: |
| | 72 | {{{ |
| | 73 | nilanjan@console.sb7:~$ omf-5.2 exec wimax-tutorial2.rb |
| | 74 | INFO NodeHandler: init OMF Experiment Controller 5.2.408 |
| | 75 | INFO NodeHandler: init Experiment ID: sb7.orbit-lab.org_2011_09_14_10_58_24 |
| | 76 | INFO NodeHandler: Web interface available at: http://10.17.0.10:4000 |
| | 77 | INFO Experiment: load system:exp:stdlib |
| | 78 | INFO property.resetDelay: value = 70 (Fixnum) |
| | 79 | INFO property.resetTries: value = 1 (Fixnum) |
| | 80 | INFO Experiment: load wimax-tutorial2.rb |
| | 81 | INFO whenAll: *: 'apps/app/status/@value' fires |
| | 82 | INFO exp: Give machines some time to warm up |
| | 83 | INFO exp: Request from Experiment Script: Wait for 10s.... |
| | 84 | INFO exp: Collect measurements for 100 seconds |
| | 85 | INFO exp: Request from Experiment Script: Wait for 100s.... |
| | 86 | INFO exp: Finish it. |
| | 87 | INFO Experiment: DONE! |
| | 88 | INFO NodeHandler: Shutting down experiment, please wait... |
| | 89 | }}} |