# getRecentSlaveReplicationInfo {#getrecentslavereplicationinfo}

## Syntax {#section_kbg_lz1_dzb .section}

`getRecentSlaveReplicationInfo()`

## Arguments {#section_uqt_lz1_dzb .section}

None

## Details {#section_rqf_mz1_dzb .section}

This function displays the latest task in each slave cluster where cluster replication is enabled. It can only be executed by an administrator on the controller of a master cluster.

It returns a table containing the following columns:

-   connectedController: ip:port of the controller of slave cluster.

-   allControllersInRaft: ip:port of each controller in a raft group for a HA cluster.

-   lastFinishedTaskId: ID of the last finished task.

-   lastPullTime: the last time when the slave cluster pulls tasks from the master cluster.


## Examples {#section_ifj_nz1_dzb .section}

``` {#codeblock_c1f_4z1_dzb}
getRecentSlaveReplicationInfo()
```

|connectedController|allControllersInRaft|lastFinishedTaskId|lastPullTime|
|-------------------|--------------------|------------------|------------|
|192.168.2.2:1111|192.168.2.2:1111,192.168.2.2:1112,192.168.2.2:1113|233|2022.11.11T11:11:11|

**Parent topic:**[Functions](../../Functions/category.md)

