| 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)]] |
| | 36 | Example: |
| | 37 | |
| | 38 | {{{curl "internal2dmz.orbit-lab.org:5054/instr/statusSB2"}}} |
| | 39 | |
| | 40 | Response: |
| | 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)]] |
| | 74 | Example (switch to normal X310 <=> X310 connection): |
| | 75 | |
| | 76 | {{{curl "internal2dmz.orbit-lab.org:5054/instr/selDeviceSB2?device=1"}}} |
| | 77 | |
| | 78 | Response: |
| | 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]] |