wiki:Tutorial/HowToSwitch

Version 9 (modified by ssugrim, 12 years ago) ( diff )

Go back —> Tutorials

How to switch On/Off the nodes of a Testbed

If you have not done so yet:

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:

 ssh bob@console.grid.orbit-lab.org


Getting Started

Then, to switch some nodes On/Off on the 'grid' testbed, use the command:

 omf tell -a on -t all
 # will turn On the entire set of 20x20 nodes on the 'grid'
 
 omf tell -a offs -t node3-1.domain,node5-6.domain,node1-1.domain,node1-2.domain
 # will turn Off (soft) the nodes 3,1 and 5,6 and 1,1 and 1,2


Learning More

The complete available options for this command is given by "omf help tell":

   omf help tell

Switch ON/OFF the nodes in a testbed

Usage:
      omf tell [-h]
      omf tell [COMMAND] [TOPOLOGY] [DOMAIN]
 
      With: 
      -h, --help    print this help message
 
      COMMAND:
      on, -on, --turn-on              turn node(s) ON
      offs, -offs, --turn-off-soft    turn node(s) OFF (soft)
      offh, -offh, --turn-off-hard    turn node(s) OFF (hard)
 
      TOPOLOGY      a valid topology description or file
                    (default is the entire set of nodes on the default testbed)
 
      Some Examples: 
                    omf tell on all grid
                    omf tell on 1,1..2
                    omf tell offs [[1,2],[1,1]] sb1 
                    omf tell offs [[1,1],[2..6,1..2]] 
                    omf tell offh system:topo:all
                    omf tell offh topo_grid_active
 
Note: See TracWiki for help on using the wiki.