wiki:Old/NodeHandler/FAQ/HowToControlNodes

Orbit > NodeHandler > FAQ > How to control nodes

How to control Nodes

All orbit services accessible to an experimenter are provided through the gridservice web service. This web service is the primary interface to all services (it's the only thing the node handler uses and it's the way to control your experiment if you don't want to use node handler)

To find out what CMC specific services are available, do the following on 'remote':

% wget -O - http://localhost:5012/cmc 
        <?xml version='1.0'?>
        <serviceGroup name="cmc">
          <info>Controls nodes through their attached CMs</info>
          <service name="on">
            <info>Switch on a node at a specific coordinate</info>
            <args><arg name="x" value="x_coord"/></args>
            <args><arg name="y" value="y_coord"/></args>
          </service>
          <service name="off">
            <info>Switch off a node at a specific coordinate</info>
            <args><arg name="x" value="x_coord"/></args>
            <args><arg name="y" value="y_coord"/></args>
          </service>
          <service name="allOff">
            <info>Switch all nodes off</info>
          </service>
          <service name="reset">
            <info>Reset a node at a specific coordinate</info>
            <args><arg name="x" value="x_coord"/></args>
            <args><arg name="y" value="y_coord"/></args>
          </service>
          <service name="status">
            <info>Returns the settings of this service</info>
          </service>
        </serviceGroup>

So to switch all nodes off, you exeute

% wget -O - http://localhost:5012/cmc/allOff

To switch on a node 1@2:

% wget -O - http://localhost:5012/cmc/on?x=1&y=2

This command will work on ALL consoles. What we still need to agree on is a proper CNAME as the service won't run on the console itself.

I'm still hoping that someone will volunteer to write a nice XSLT script to turn the XML into a nice web page with textboxes and buttons to allow for interacting with these services (there are more than just 'cmc').

Last modified 15 years ago Last modified on Sep 29, 2005, 5:29:58 PM
Note: See TracWiki for help on using the wiki.