Changes between Version 9 and Version 10 of Tutorial/HowToSwitch
- Timestamp:
- Jan 11, 2013, 10:28:08 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorial/HowToSwitch
v9 v10 2 2 [[TOC(heading=Tutorial TOC, Tutorial, Tutorial/HowToSwitch, depth=2)]] 3 3 4 = How to switch On/Off the nodes of a Testbed =4 = How to switch !On/Off the nodes of a Testbed = 5 5 6 6 If you have not done so yet: … … 9 9 * [https://www.orbit-lab.org/schedule/ Make a reservation] on the Schedular for a given tesbed 10 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:11 n general you can reserve either the main grid, or one of the sandboxes, the fully qualified domain name will reflect the resouce you reserved. 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 12 13 13 {{{ … … 20 20 Then, to switch some nodes On/Off on the 'grid' testbed, use the command: 21 21 22 {{{ 23 omf tell -a on -t all 24 # will turn On the entire set of 20x20 nodes on the 'grid' 25 26 omf tell -a offs -t node3-1.domain,node5-6.domain,node1-1.domain,node1-2.domain 27 # will turn Off (soft) the nodes 3,1 and 5,6 and 1,1 and 1,2 28 }}} 22 {{{ 23 omf tell -a on -t all 24 }}} 25 will turn On the entire set of 20x20 nodes on the '''grid'''. 26 27 {{{ 28 omf tell -a offs -t node3-1.grid.orbit-lab.org,node5-6.grid.orbit-lab.org,node1-1.grid.orbit-lab.org,node1-2.grid.orbit-lab.org 29 }}} 30 will turn Off (soft, that is attempt a graceful shutdown) the nodes 3,1 and 5,6 and 1,1 and 1,2 31 32 {{{ 33 omf tell -a offh -t node3-1.grid.orbit-lab.org,node5-6.grid.orbit-lab.org,node1-1.grid.orbit-lab.org,node1-2.grid.orbit-lab.org 34 }}} 35 will turn Off (hard, that is "hold down" the power button) the nodes 3,1 and 5,6 and 1,1 and 1,2 29 36 30 37 31 [[BR]]32 38 == Learning More == 33 39 34 40 The complete available options for this command is given by ''"omf help tell"'': 35 41 36 {{{ 37 omf help tell 38 39 Switch ON/OFF the nodes in a testbed 40 41 Usage: 42 omf tell [-h] 43 omf tell [COMMAND] [TOPOLOGY] [DOMAIN] 42 {{{ 43 user@console.grid:~$ omf help tell 44 Switch ON/OFF and reboot the nodes in a testbed 45 Usage: 46 omf tell -a ACTION [-h] [-t TOPOLOGY] [-c AGGREGATE] 44 47 45 48 With: 46 -h, --help print this help message49 -h, --help print this help message 47 50 48 COMMAND: 49 on, -on, --turn-on turn node(s) ON 50 offs, -offs, --turn-off-soft turn node(s) OFF (soft) 51 offh, -offh, --turn-off-hard turn node(s) OFF (hard) 51 -a, --action ACTION specify an action 52 ACTION: 53 on turn node(s) ON 54 offs turn node(s) OFF (soft) 55 offh turn node(s) OFF (hard) 56 reboot reboots node(s) (soft) 57 reset resets node(s) (hard) 52 58 53 TOPOLOGY a valid topology description or file54 (default is the entire set of nodes on the default testbed)59 -c, --config AGGREGATE use testbed AGGREGATE 60 -t, --topology TOPOLOGY a valid topology file or description (defaults to 'system:topo:all') 55 61 56 62 Some Examples: 57 omf tell on all grid 58 omf tell on 1,1..2 59 omf tell offs [[1,2],[1,1]] sb1 60 omf tell offs [[1,1],[2..6,1..2]] 61 omf tell offh system:topo:all 62 omf tell offh topo_grid_active 63 64 }}} 65 63 omf tell -a reset 64 omf tell -a on -t system:topo:all -c grid 65 omf tell -a reboot -t omf.nicta.node1 66 omf tell -a offs -t omf.nicta.node1,omf.nicta.node2 -c sb1 67 omf tell -a offh -t system:topo:all 68 omf tell -a reset -t topo_grid_active 69 }}}