I have fedora directory server installed and configured replication agreement setup between two servers, working great.

Now, what I want to do is create a program may be in python and check the replication status in a certain interval and send an update to consumer using command line instead of update. Is it possible to do it using command line? Where can I find the documentation for that?