Cisco Cisco Agent Desktop 8.0 技术参考
Recovering the Directory Services Database
November 2006
201
10. Change directories to …Cisco\Desktop\bin (the drive and exact location of
this directory depends on where the services were installed).
11. In the …Cisco\Desktop\bin directory, type the command:
slapadd -f slapd.conf -l backup.ldif -c
and press Enter.
12. Type exit and press Enter to close the DOS window.
13. Restart the Cisco LDAP Monitor service.
Out of Sync Directory Services Databases
The secondary Directory Services database can become out of sync with the primary
Directory Services database. A possible reason for this to occur is that the secondary
database was reinstalled.
Directory Services database. A possible reason for this to occur is that the secondary
database was reinstalled.
Follow these steps to sync up the two databases:
1. On the PC hosting the primary database, stop the Cisco Desktop LDAP
Monitor.
2. Remove all contents from the files repl.log and repl.log.lock from the
…\Cisco\Desktop\database directory.
3. Delete all files in the …\Cisco\Desktop\logs\replica directory.
4. Open a command window on the primary database computer.
5. Change directories to …Cisco\Desktop\bin (the drive and exact location of
this folder depends on where the service was installed).
6. In the …Cisco\Desktop\bin directory, type the command:
slapcat -f slapd.conf -l backup.ldif -c
and press Enter.
A file called backup.ldif is generated.
7. Copy the backup.ldif file to the computer on which the secondary LDAP
service is installed, into the …Cisco\Desktop\bin folder.
8. On the PC hosting the secondary database, stop the Cisco Desktop LDAP
Monitor.
9. Rename the existing folder …Cisco\Desktop\database to
…Cisco\Desktop\old_database.
10. Create a new folder called …Cisco\Desktop\database.
11. Copy DB_CONFIG and all files with a *.dat extension from the old_database
folder to the database folder.
12. In the database folder, create an empty file called rep.log.