Changes between Version 9 and Version 10 of Tutorial/HowToSwitch


Ignore:
Timestamp:
Jan 11, 2013, 10:28:08 PM (11 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial/HowToSwitch

    v9 v10  
    22[[TOC(heading=Tutorial TOC, Tutorial, Tutorial/HowToSwitch, depth=2)]]
    33
    4 = How to switch On/Off the nodes of a Testbed =
     4= How to switch !On/Off the nodes of a Testbed =
    55
    66If you have not done so yet:
     
    99 * [https://www.orbit-lab.org/schedule/ Make a reservation] on the Schedular for a given tesbed
    1010
    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:
     11n 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:
    1212
    1313 {{{
     
    2020Then, to switch some nodes On/Off on the 'grid' testbed, use the command:
    2121
    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{{{
     23omf tell -a on -t all
     24}}}
     25will turn On the entire set of 20x20 nodes on the '''grid'''.
     26
     27{{{ 
     28omf 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}}}
     30will turn Off (soft, that is attempt a graceful shutdown) the nodes 3,1 and 5,6 and 1,1 and 1,2
     31
     32{{{ 
     33omf 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}}}
     35will turn Off (hard, that is "hold down" the power button) the nodes 3,1 and 5,6 and 1,1 and 1,2
    2936
    3037
    31 [[BR]]
    3238== Learning More ==
    3339
    3440The complete available options for this command is given by ''"omf help tell"'':
    3541
    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]
    4447 
    4548      With:
    46       -h, --help    print this help message
     49      -h, --help           print this help message
    4750 
    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)
    5258 
    53       TOPOLOGY      a valid topology description or file
    54                     (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')
    5561 
    5662      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}}}