---
title: Monitoring replication
description: This section covers how to use the PingDirectory server to monitor replication.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_monitor_replication
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_monitor_replication.html
revdate: September 18, 2023
page_aliases: ["pd_ds_monitor_replication_cn_monitor.adoc"]
section_ids:
  monitoring-replication-using-cnmonitor: Monitoring replication using cn=monitor
---

# Monitoring replication

This section covers how to use the PingDirectory server to monitor replication.

The PingDirectory server monitors replication in the following ways:

* Use the `dsreplication` tool with the `status` subcommand to display basic information about the replicated base distinguish names (DNs), the number of entries replicated, as well as the approximate size of replication backlogs at each PingDirectory server.

* Obtain more detailed information about the state of replication through the information exposed in its monitoring framework under `cn=monitor`.

* Use Periodic Stats Logger plugin, which allows collecting replication statistics for profiling server performance. For more information, see [Profiling Server Performance Using the Periodic Stats Logger](../monitoring_the_pingdirectory_suite_of_products/pd_ds_profile_server_perf_stats_logger.html).

Administrators can monitor their replication topologies using several tools and protocols:

* SNMP

* LDAP

* JMX

* The admin console. For more information, see [Managing Logging](pd_ds_manage_logging.html) and [Managing Monitoring](../monitoring_the_pingdirectory_suite_of_products/pd_ds_manage_monitoring.html).

## Monitoring replication using cn=monitor

The `cn=monitor` branch has several entries that store the replication state of a topology.

**cn=monitor branch entries and their descriptions**

| cn=monitorentries                                       | Description                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Direct LDAP Server `<baseDN><host name:port><serverID>` | Defines an LDAP server that directly connects to the replication server you are querying. The information in this entry applies to the replication server local to the `cn=monitor` entry.For more information, see [Summary of the Direct LDAP Monitor information](pd_ds_summary_direct_ldap_monitor_info.html).                                                                         |
| Indirect LDAP Server `<baseDN><serverID>`               | Defines an LDAP server that connects to another replication server in the topology. While this server connects to the same topology, it does not connect to the replication server you are querying.For more information, see [Summary of the Indirect LDAP Server Monitor information](pd_ds_summary_indirect_ldap_server_monitor_info.html).                                             |
| Remote Repl Server `<baseDN><host name:port><serverID>` | Defines a remote replication server that connects to the local replication server. Information in this entry is in respect to the Replication Server local to the `cn=monitor` branch.For more information, see [Summary of the Remote Replication Server Monitor information](pd_ds_summary_remote_replication_server_monitor_info.html).                                                 |
| Replica `<baseDN>`                                      | Stores information for an instance of the replicated naming context, also known as the replica, with respect to the PingDirectory server and its communication with a replication server. The replica information sends and receives changes from the replication servers.For more information, see [Summary of the Replica Monitor information](pd_ds_summary_replica_monitor_info.html). |
| Replication Server                                      | Shows information specific to the Replication Server running.For more information, see [Summary of the Replication Server Monitor information](pd_ds_summary_replication_server_monitor_info.html).                                                                                                                                                                                        |
| Replication Server Database `<baseDN><serverID>`        | Shows information for the changelog table of replica (suffix) in the replication server. As the Replication Server receives updates from the PingDirectory server, it records those changes in the changelog table.For more information, see [Summary of the Replication Server Database Monitor information](pd_ds_summary_replication_server_db_monitor_info.html).                      |
| Replication Server Database Environment                 | Shows information for the database environment for the replication server backend as well as the total number of records added to and deleted from the database.For more information, see [Summary of the Replication Server Database Environment Monitor information](pd_ds_summary_replication_server_db_env_monitor_info.html).                                                         |
| Replication Summary `<baseDN>`                          | Shows summary information on the replication topology and the state for a particular base distinguish name (DN).For more information, see [Summary of the Replication Summary Monitor information](pd_ds_summary_replication_summary_monitor_info.html).                                                                                                                                   |
| replicationChanges Backend                              | Shows the backend information for all replication changes.For more information, see [Summary of the replicationChanges Backend Monitor information](pd_ds_summary_replicationchanges_backend_monitor_info.html).                                                                                                                                                                           |
| Replication Protocol Buffer                             | Shows the state of the buffer (initially 4k) for protocol operations, which is stored in thread local storage.For more information, see [Summary of the Replication Protocol Buffer Monitor information](pd_ds_summary_replication_protocol_buffer_monitor_info.html).                                                                                                                     |
