| | 1 | [wiki:WikiStart Orbit] > [wiki:NodeHandler NodeHandler] > [wiki:NodeHandler/FAQ FAQ] > How to control nodes |
| | 2 | |
| | 3 | = How to control Nodes = |
| | 4 | |
| | 5 | All orbit services accessible to an experimenter are provided |
| | 6 | through the gridservice web service. This web service is the primary |
| | 7 | interface to all services (it's the only thing the node handler uses and |
| | 8 | it's the way to control your experiment if you don't want to use node |
| | 9 | handler) |
| | 10 | |
| | 11 | To find out what CMC specific services are available, do the following on 'remote': |
| | 12 | |
| | 13 | {{{ |
| | 14 | % wget -O - http://localhost:5012/cmc |
| | 15 | <?xml version='1.0'?> |
| | 16 | <serviceGroup name="cmc"> |
| | 17 | <info>Controls nodes through their attached CMs</info> |
| | 18 | <service name="on"> |
| | 19 | <info>Switch on a node at a specific coordinate</info> |
| | 20 | <args><arg name="x" value="x_coord"/></args> |
| | 21 | <args><arg name="y" value="y_coord"/></args> |
| | 22 | </service> |
| | 23 | <service name="off"> |
| | 24 | <info>Switch off a node at a specific coordinate</info> |
| | 25 | <args><arg name="x" value="x_coord"/></args> |
| | 26 | <args><arg name="y" value="y_coord"/></args> |
| | 27 | </service> |
| | 28 | <service name="allOff"> |
| | 29 | <info>Switch all nodes off</info> |
| | 30 | </service> |
| | 31 | <service name="reset"> |
| | 32 | <info>Reset a node at a specific coordinate</info> |
| | 33 | <args><arg name="x" value="x_coord"/></args> |
| | 34 | <args><arg name="y" value="y_coord"/></args> |
| | 35 | </service> |
| | 36 | <service name="status"> |
| | 37 | <info>Returns the settings of this service</info> |
| | 38 | </service> |
| | 39 | </serviceGroup> |
| | 40 | }}} |
| | 41 | |
| | 42 | So to switch all nodes off, you exeute |
| | 43 | |
| | 44 | {{{% wget -O - http://localhost:5012/cmc/allOff}}} |
| | 45 | |
| | 46 | To switch on a node 1@2: |
| | 47 | |
| | 48 | {{{% wget -O - http://localhost:5012/cmc/on?x=1&y=2}}} |
| | 49 | |
| | 50 | This command will work on ALL consoles. What we still need to agree on is a |
| | 51 | proper CNAME as the service won't run on the console itself. |
| | 52 | |
| | 53 | I'm still hoping that someone will volunteer to write a nice XSLT script to |
| | 54 | turn the XML into a nice web page with textboxes and buttons to allow for |
| | 55 | interacting with these services (there are more than just 'cmc'). |