# Incremental data replication - Check the status of the replication task

```
[ec2-user@ip-10-90-4-192 ~]$ tiup dmctl:v6.5.1 --master-addr=${HOST_DM_MASTER_IP}:8261 query-status dm-task.yaml
Starting component `dmctl`: /home/ec2-user/.tiup/components/dmctl/v6.5.1/dmctl/dmctl --master-addr=10.90.2.119:8261 query-status dm-task.yaml
{
    "result": true,
     ...    
           "subTaskStatus": [
                {
                    "name": "dm-task",
                    "stage": "Running",
                    "unit": "Sync",
                    "result": null,
                    "unresolvedDDLLockID": "",
                    "sync": {
                        "totalEvents": "0",
                        "totalTps": "0",
                        "recentTps": "0",
                        "masterBinlog": "(mysql-bin1.000003, 154)",
                        "masterBinlogGtid": "",
                        "syncerBinlog": "(mysql-bin1.000002, 8541)",
                        ...             
}
```
-------------------------------------------------------------
To learn whether the `DM` cluster has an ongoing replication task and view the task status, run the `query-status` command using `tiup dmctl`:
```
tiup dmctl:v6.5.1 --master-addr=${HOST_DM_MASTER_IP}:8261 query-status dm-task.yaml
The following is an example output:
Starting component `dmctl`: /home/ec2-user/.tiup/components/dmctl/v6.5.1/dmctl/dmctl --master-addr=10.90.2.119:8261 query-status dm-task.yaml
{
    "result": true,
               "subTaskStatus": [
                {
                    "name": "dm-task",
                    "stage": "Running",
                    "unit": "Sync",
                    "result": null,
                    "unresolvedDDLLockID": "",
                    "sync": {
                        "totalEvents": "0",
                        "totalTps": "0",
                        "recentTps": "0",
                        "masterBinlog": "(mysql-bin1.000003, 154)",
                        "masterBinlogGtid": "",
                        "syncerBinlog": "(mysql-bin1.000002, 8541)",
                        "syncerBinlogGtid": "",
                        "blockingDDLs": [
                        ],
                        "unresolvedGroups": [
                        ],
                        "synced": false,
                        "binlogType": "remote",
                        "secondsBehindMaster": "0",
                        "blockDDLOwner": "",
                        "conflictMsg": "",
                        "totalRows": "0",
                        "totalRps": "0",
                        "recentRps": "0"
                    },
                    "validation": null
                }
            ]
        },
        {
            "result": true,
            "msg": "",
            "sourceStatus": {
                "source": "mysql-replica-02",
                "worker": "dm-10.90.3.203-8262",
                "result": null,
                "relayStatus": null
            },
            "subTaskStatus": [
                {
                    "name": "dm-task",
                    "stage": "Running",
                    "unit": "Sync",
                    "result": null,
                    "unresolvedDDLLockID": "",
                    "sync": {
                        "totalEvents": "0",
                        "totalTps": "0",
                        "recentTps": "0",
                        "masterBinlog": "(mysql-bin2.000002, 8277)",
                        "masterBinlogGtid": "",
                        "syncerBinlog": "(mysql-bin2.000002, 8277)",
                        "syncerBinlogGtid": "",
                        "blockingDDLs": [
                        ],
                        "unresolvedGroups": [
                        ],
                        "synced": true,
                        "binlogType": "remote",
                        "secondsBehindMaster": "0",
                        "blockDDLOwner": "",
                        "conflictMsg": "",
                        "totalRows": "0",
                        "totalRps": "0",
                        "recentRps": "0"
                    },
                    "validation": null
                }
            ]
        }
    ]
}
```

For a detailed interpretation of the results, see https://docs.pingcap.com/tidb/stable/dm-query-status.