Get the current RTU (Remote Terminal Unit) Player status
- Last UpdatedApr 24, 2025
- 1 minute read
To get the current RTU (Remote Terminal Unit) Player status
-
To get the current status of an RTU Player instance, issue a GET using the following URL format:
http://localhost:<portnumber>/Simulation/Status
Where:
-
portnumber is the port specified in the RTU Player configuration file.
Note: The command will return "working" as an http response if the player instance is active. If the player instance is not active, no response will be received from the request.
-
The following example details an issued request for the current status using the curl command line utility:
curl -v -X GET http://localhost:63280/Simulation/Status
An active status should return as follows:
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 63280 (#0)
> GET /simulation/status HTTP/1.1
> Host: localhost:63280
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 9
< Content-Type: application/json; charset=utf-8
< Server: Microsoft-HTTPAPI/2.0
< Date: Thu, 23 Nov 2017 22:03:03 GMT
<
"Working"* Connection #0 to host localhost left intact
An inactive status should return as follows:
* Trying ::1...
* TCP_NODELAY set
* Trying 127.0.0.1...
* TCP_NODELAY set
* connect to ::1 port 63280 failed: Connection refused
* connect to 127.0.0.1 port 63280 failed: Connection refused
* Failed to connect to localhost port 63280: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 63280: Connection refused