Changes between Initial Version and Version 1 of Old/NodeHandler/FAQ/HowToControlNodes


Ignore:
Timestamp:
Sep 29, 2005, 5:29:58 PM (15 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/NodeHandler/FAQ/HowToControlNodes

    v1 v1  
     1[wiki:WikiStart Orbit] > [wiki:NodeHandler NodeHandler] > [wiki:NodeHandler/FAQ FAQ] > How to control nodes
     2
     3= How to control Nodes =
     4
     5All orbit services accessible to an experimenter are provided
     6through the gridservice web service. This web service is the primary
     7interface to all services (it's the only thing the node handler uses and
     8it's the way to control your experiment if you don't want to use node
     9handler)
     10
     11To 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
     42So to switch all nodes off, you exeute
     43
     44{{{% wget -O - http://localhost:5012/cmc/allOff}}}
     45
     46To switch on a node 1@2:
     47
     48{{{% wget -O - http://localhost:5012/cmc/on?x=1&y=2}}}
     49
     50This command will work on ALL consoles. What we still need to agree on is a
     51proper CNAME as the service won't run on the console itself.
     52
     53I'm still hoping that someone will volunteer to write a nice XSLT script to
     54turn the XML into a nice web page with textboxes and buttons to allow for
     55interacting with these services (there are more than just 'cmc').