15.23. Monitoring the Replication Topology
Use the
dsconf replication monitor
command to display the replication status, as well as additional information, such as replica IDs and Change State Numbers (CSN) on suppliers, consumers, and hubs:
15.23.1. Setting Credentials for Replication Monitoring in the .dsrc File Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
By default, the
dsconf replication monitor
command prompts for bind DNs and passwords when authenticating to remote instances. Alternatively, you can set the bind DNs, and optionally passwords, for each server in the topology in the user's ~/.dsrc
file.
Example 15.1. An Example .dsrc File with Explanations of the Different Fields
The following is an example
~/.dsrc
file:
[repl-monitor-connections] connection1 = server1.example.com:389:cn=Directory Manager:* connection2 = server2.example.com:389:cn=Directory Manager:[~/pwd.txt] connection3 = hub1.example.com:389:cn=Directory Manager:S3cret
[repl-monitor-connections]
connection1 = server1.example.com:389:cn=Directory Manager:*
connection2 = server2.example.com:389:cn=Directory Manager:[~/pwd.txt]
connection3 = hub1.example.com:389:cn=Directory Manager:S3cret
This example uses
connection1
to connection3
as keys for each entry. However, you can use any key as long as it is unique.
If you run the
dsconf replication monitor
command, the dsconf
utility connects to all servers configured in replication agreements of the instance. If the utility finds the host name in ~/.dsrc
, it uses the defined credentials to authenticate to the remote server. In the example above, dsconf
uses the following credentials when connecting to a server:
Host name | Bind DN | Password |
---|---|---|
server1.example.com | cn=Directory Manager | Prompts for the password |
server2.example.com | cn=Directory Manager | Reads password from ~/pwd.txt |
hub1.example.com | cn=Directory Manager | S3cret |
15.23.2. Using Aliases in the Replication Topology Monitoring Output Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
By default, the
dsconf replication monitor
command displays the host names of servers in the monitoring report. Alternatively, you can display aliases using one of the following methods:
- Define the aliases in the
~/.dsrc
file:[repl-monitor-aliases] M1 = server1.example.com:389 M2 = server2.example.com:389
[repl-monitor-aliases] M1 = server1.example.com:389 M2 = server2.example.com:389
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Define the aliases by passing the
-a alias=host_name:port
parameter to thedsconf replication monitor
command:dsconf -D "cn=Directory Manager" ldap://server.example.com replication monitor -a M1=server1.example.com:389 M2=server2.example.com:389
# dsconf -D "cn=Directory Manager" ldap://server.example.com replication monitor -a M1=server1.example.com:389 M2=server2.example.com:389
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
In both cases, the command displays the alias in the command's output:
... Supplier: M1 (server1.example.com:389) ... Supplier: M2 (server2.example.com:389) ...
...
Supplier: M1 (server1.example.com:389)
...
Supplier: M2 (server2.example.com:389)
...