Status, Xget, Xput – Thinklogical Router - ASCII-API User Manual
Page 8
![background image](/files/807771/content/doc008.png)
Status
Return the connection status of an input or output port.
Format:
Sixxxx
sixxxx
Return the list of output ports that are connected to input port xxxx.
If nothing is connected to port xxxx,
0000 will be returned.
Format:
Soyyyy
soyyyy
Return the input port number that is connected to output port yyyy.
If nothing is connected to port xxxx,
0000 will be returned.
Example Results (
SI):
RnnnnOKIxxxxOyyyyOyyyyOyyyy... or R0007ERnnnn
xxxx is connected to output(s) yyyy.
0000
means not connected.
Example Results
(
SO
):
RnnnnOKIxxxxOyyyy or R0007ERnnnn
xxxx is connected to output yyyy.
0000 means not connected.
XGET
Return the entire switch connection state. The output from this command is used by the XPUT command.
Format:
XGET
This will return a (very) long string listing every connection. The connection list consists
of a series of input port numbers, followed by output port numbers.
The XPUT command requires all the characters in the response that come after the
'OK'.
Example Results:
R0037OKI00010003I00020004i0010001000110012
R0029OKI00010003I0010001000110012
R0012OKI01230145
R0003OK or R0007ERnnnn
XPUT
Restore the entire switch connection state. The output from XGET is used by this command.
Format:
XPUTstr
The XPUT command will turn off all outputs and then make the connections that are
listed in 'str'. 'str' is the response that was returned from a XGET command.
XPUT without any ports is valid and is interpreted as a command to disconnect all
ports.
Example:
XPUTI00010003I00020004i0010001000110012
Example Results:
R0003OK or R0007ERnnnn
Jun 12, 2014
Router ASCII API: V4.5-1
7/33