Changes between Version 19 and Version 20 of Hardware/bDomains/cSandboxes/bSB2


Ignore:
Timestamp:
Dec 21, 2018, 9:32:12 PM (6 years ago)
Author:
jkol
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Hardware/bDomains/cSandboxes/bSB2

    v19 v20  
    2525 Use the instrumentation service to check the current configuration as well as make changes to it.
    2626
    27 TODO
     27 To get the current configuration:
     28
     29{{{
     30<service name="statusSB2">
     31  <info>This service outputs status information about SB2.</info>
     32</service>
     33}}}
     34
     35  [[CollapsibleStart(statusSB2)]]
     36Example:
     37
     38 {{{curl "internal2dmz.orbit-lab.org:5054/instr/statusSB2"}}}
     39
     40Response:
     41
     42{{{
     43<response detail="undefined local variable or method `matrixstatus' for InstrService:Class" status="ERROR" switch="OK">
     44  <action name="statusSB2" service="instr">
     45    <Switches>
     46      <Switch state="1" status="OK" swNo="1"/>
     47      <Switch state="1" status="OK" swNo="2"/>
     48      <Switch state="1" status="OK" swNo="3"/>
     49      <Switch state="1" status="OK" swNo="4"/>
     50    </Switches>
     51  </action>
     52</response>
     53}}}
     54
     55[[CollapsibleEnd]]
     56
     57 To switch the configuration:
     58{{{
     59<service name="selDeviceSB2">
     60  <info>
     61    This service configures how devices are connected in Sandbox 2.
     62  </info>
     63  <args>
     64    <arg isRequired="true" name="device" value="device">
     65      <info>
     66        Device (1 => X310 to X310, 2 => X310 to 60GHz module
     67      </info>
     68    </arg>
     69  </args>
     70</service>
     71}}}
     72
     73  [[CollapsibleStart(selDeviceSB2)]]
     74Example (switch to normal X310 <=> X310 connection):
     75
     76 {{{curl "internal2dmz.orbit-lab.org:5054/instr/selDeviceSB2?device=1"}}}
     77
     78Response:
     79
     80{{{
     81<response status="OK">
     82  <action name="selDeviceSB2" service="instr">
     83    <attributes>
     84      <UNKNOWN ip="10.3.0.36" port="1" return="0" status="OK" switch="1"/>
     85      <UNKNOWN ip="10.3.0.36" port="1" return="0" status="OK" switch="2"/>
     86      <UNKNOWN ip="10.3.0.36" port="1" return="0" status="OK" switch="3"/>
     87      <UNKNOWN ip="10.3.0.36" port="1" return="0" status="OK" switch="4"/>
     88    </attributes>
     89  </action>
     90</response>
     91}}}
     92[[CollapsibleEnd]]
    2893
    2994