Skip to content

OpenLDAP Quick Tips: Checking the state of replication

LinuxOpenLDAPOpen SourceSuretec Hi All,

I might as well start easing back into the OpenLDAP Weekly Newsletter by doing some "OpenLDAP Quick Tips". Here's the first one.

"Check that the synchronisation state indicators of any slaves or masters are the same":

CODE:
[ghenry@suretec ~]$ ldapsearch -x -LLL -H ldap[?]://master:389 -s base -b 'dc=suretecsystems,dc=com' contextCSN[?] dn: dc=suretecsystems,dc=com contextCSN: 20081025222436.822813Z&000000;000#000000 [ghenry@suretec ~]$ ldapsearch -x -LLL -H ldap://slave:389 -s base -b 'dc=suretecsystems,dc=com' contextCSN dn: dc=suretecsystems,dc=com contextCSN: 20081025222436.822813Z&000000;000#000000


If they are the same, then replication has finished, otherwise replication has not finished or has failed.

For more technical detail, please see http://www.openldap.org/doc/admin24/replication.html#LDAP[?]%20Sync%20Replication

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
BBCode format allowed

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Pavatar, Gravatar, Favatar, MyBlogLog, Pavatar author images supported.
Form options