| | 1 | |
| | 2 | Go back --> [wiki:Tutorial Tutorials] |
| | 3 | |
| | 4 | == How to switch On/Off the nodes of a Testbed == |
| | 5 | |
| | 6 | If you have not done so yet: |
| | 7 | |
| | 8 | * [http://www.orbit-lab.org/wiki/Registration Register] for an account |
| | 9 | * [https://www.orbit-lab.org/schedule/ Make a reservation] on the Schedular for a given tesbed |
| | 10 | |
| | 11 | Lets assume that you registered as user 'bob' and made a reservation for the 'grid' testbed. You then access the 'grid' console using the command: |
| | 12 | |
| | 13 | {{{ |
| | 14 | ssh bob@console.grid.orbit-lab.org |
| | 15 | }}} |
| | 16 | |
| | 17 | Then, to switch some nodes On/Off on the 'grid' testbed, use the command: |
| | 18 | |
| | 19 | {{{ |
| | 20 | tellnode on all |
| | 21 | # will turn On the entire set of 20x20 nodes on the 'grid' |
| | 22 | |
| | 23 | tellnode offs [[3,1],[5,6],[1,1..2]] |
| | 24 | # will turn Off (soft) the nodes 3,1 and 5,6 and 1,1 and 1,2 |
| | 25 | |
| | 26 | tellnode offh system:topo:circle |
| | 27 | # will turn Off (hard) the nodes in the topology file 'repository/system/topo/circle.rb' |
| | 28 | |
| | 29 | tellnode on mytopo |
| | 30 | # will turn On the nodes in the topology file './mytopo.rb' |
| | 31 | }}} |
| | 32 | |
| | 33 | The complete available option/commands for ''statnode'' are: |
| | 34 | |
| | 35 | {{{ |
| | 36 | tellnode --help |
| | 37 | |
| | 38 | Switch ON/OFF the nodes in a testbed |
| | 39 | Usage: |
| | 40 | tellnode [-h] |
| | 41 | tellnode [COMMAND] [TOPOLOGY] [DOMAIN] |
| | 42 | |
| | 43 | With: |
| | 44 | -h, --help print this help message |
| | 45 | |
| | 46 | COMMAND: |
| | 47 | on, -on, --turn-on turn node(s) ON |
| | 48 | offs, -offs, --turn-off-soft turn node(s) OFF (soft) |
| | 49 | offh, -offh, --turn-off-hard turn node(s) OFF (hard) |
| | 50 | |
| | 51 | TOPOLOGY a valid topology description or file |
| | 52 | (default is the entire set of nodes on the default testbed) |
| | 53 | |
| | 54 | Some Examples: |
| | 55 | tellnode on all grid |
| | 56 | tellnode on 1,1..2 |
| | 57 | tellnode offs [[1,2],[1,1]] sb1 |
| | 58 | tellnode offs [[1,1],[2..6,1..2]] |
| | 59 | tellnode offh system:topo:all |
| | 60 | tellnode offh topo_grid_active |
| | 61 | }}} |
| | 62 | |