×

Sent command status

This API retrieves the status of a complex command, including the overall status and the status/responses from all objects and sub-commands included in the complex command.

How to get data

Method

GET

Request address

To get the data, use the address: https://<server_address>/api/api.php?

Request parameters

  • cmd=get_command_status — API command to request the status of a command
  • command_id — identifier of the complex command
  • node — node number where the command should be executed
     

Example request

https://<server_address>/api/api.php?cmd=get_command_status&command_id=3989&node=1
Response
{
  "code": 0,
  "message": "",
  "detailed_status": {
    "43207": [
      {
        "type": "GPRS",
        "status": "accepted",
        "response": "Ver: 03.25.15_88 GPS: AXN_3.80_3333 Hw: FMB010 Mod: 3 IMEI: 352094083043221 Init: 2024-3-30 12:29 Uptime: 505289 MAC: 001E428490AF SPC: 0 (0) AXL: 0 OBD :0 BL:0,2 BT:3"
      },
      {
        "type": "GPRS",
        "status": "accepted",
        "response": "Data channel: 1 GPRS: 1 Phone: 0 SIM: 0 OP: 25001 Signal: 4 New SMS: 0 Roaming: 0 SMSFull: 0 LAC: 10 Cell ID: 11522 NetType: 1 FwUpd: -65536"
      }
    ]
  },
  "general_status": "completed",
  "version": "7.2.0"
}
In response to the API request, the following is returned:
  • code — result code (0 = success)
  • message — server message about the result
  • detailed_status — associative array with detailed information for each agent:
  • key (e.g., 43207) — agent identifier
  • type — type of communication channel
  • status — command execution status (accepted, executed, etc.)
  • response — text response from the device
  • general_status — overall status of the complex command (pending, completed, failed)
  • version — system version