wiki:Tutorial/HowToSwitch

Version 4 (modified by thierry, 17 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:

 orbit tell on all
 # will turn On the entire set of 20x20 nodes on the 'grid'
 
 orbit tell offs [[3,1],[5,6],[1,1..2]] 
 # will turn Off (soft) the nodes 3,1 and 5,6 and 1,1 and 1,2

 orbit tell offh system:topo:circle 
 # will turn Off (hard) the nodes in the topology file 'repository/system/topo/circle.rb'

 orbit tell on mytopo 
 # will turn On the nodes in the topology file './mytopo.rb'


Learning More

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

orbit help tell

Switch ON/OFF the nodes in a testbed
Usage:
      orbit tell [-h]
      orbit 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: 
                    orbit tell on all grid
                    orbit tell on 1,1..2
                    orbit tell offs [[1,2],[1,1]] sb1 
                    orbit tell offs [[1,1],[2..6,1..2]] 
                    orbit tell offh system:topo:all
                    orbit tell offh topo_grid_active
Note: See TracWiki for help on using the wiki.