Bug 239337 - Change the name and location of template-cl-dump.pl and template-repl-monitor.pl
Change the name and location of template-cl-dump.pl and template-repl-monitor.pl
Product: 389
Classification: Community
Component: Replication - General (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Noriko Hosoi
Viktor Ashirov
Depends On:
Blocks: 152373 234987 240316 FDS1.1.0
  Show dependency treegraph
Reported: 2007-05-07 13:29 EDT by Noriko Hosoi
Modified: 2015-12-07 11:56 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-12-07 11:56:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
cvs diff Makefile.am and new files (47.43 KB, text/plain)
2007-05-07 20:49 EDT, Noriko Hosoi
no flags Details
cvs commit message (2.27 KB, text/plain)
2007-05-08 13:30 EDT, Noriko Hosoi
no flags Details

  None (edit)
Description Noriko Hosoi 2007-05-07 13:29:12 EDT
Description of problem:
These 2 replication related perl scripts do not need to be installed per server
instance, but one per the system.

The template files are located in /usr/share/fedora-ds/script-templates/, so are
the 2 scripts.  The template files are not supposed to be executed directly,

That is, they don't have to be a template, but the perl script itself with ".in"
extension processed in the build.
Comment 1 Noriko Hosoi 2007-05-07 20:49:06 EDT
Created attachment 154310 [details]
cvs diff Makefile.am and new files

New Files:
wrappers/cl-dump.in --- wrapper for cl-dump.pl to set LD_LIBRARY_PATH
wrappers/repl-monitor.in --- wrapper for repl-monitor.pl to set LD_LIBRARY_PATH

ldap/admin/src/scripts/cl-dump.pl --- identical to previous template-cl-dump.pl

ldap/admin/src/scripts/repl-monitor.pl --- identical to previous

Introducing a wrapper cl-dump and repl-monitor to set LD_LIBRARY_PATH, then
call the perl script using PerLDAP.  Setting LD_LIBRARY_PATH in the perl script
($ENV{'LD_LIBRARY_PATH'}=...) does not work.

Deleted Files:
Comment 2 Noriko Hosoi 2007-05-07 21:25:43 EDT
Install location:
$ ls /usr/bin/cl-dump* /usr/bin/repl-monitor*
/usr/bin/cl-dump*     /usr/bin/repl-monitor*
/usr/bin/cl-dump.pl*  /usr/bin/repl-monitor.pl*

Test run:
$ cl-dump -p 24202 -D "cn=Directory Manager" -w passwd
# Replica Root: o=example.com
# LDIF File   :
clpurgeruv: {replicageneration} 463fce74000000010000
clpurgeruv: {replica 1 ldap://s1.sfbay.redhat.com:24202}
clmaxruv: {replicageneration} 463fce74000000010000
clmaxruv: {replica 1} 463fcea2000000010000 463fcec7000000010000 463fcec7

changetype: delete
replgen: 463fce74000000010000
csn: 463fcea2000000010000
nsuniqueid: fcc2974d-1dd111b2-80f891fc-61560000
dn: uid=scarter,ou=people,o=example.com

Comment 3 Noriko Hosoi 2007-05-08 13:30:06 EDT
Created attachment 154346 [details]
cvs commit message

Reviewed by Nathan (Thank you!)

Checked in into HEAD.
Comment 6 Deon Ballard 2008-04-09 16:19:54 EDT
The script names were updated in the config guide for 8.0, but I missed a
reference in the 8.0 admin guide to the repl-monitor.pl script. That's been
corrected now, too.

Note You need to log in before you can comment on or make changes to this bug.