Cisco Cisco Agent Desktop 8.5 Guia De Resolução De Problemas

Página de 106
Cisco CAD Troubleshooting Guide
42
March 2012
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.
Follow these steps to sync up the two databases:
1. On the PC hosting the primary database, stop the LDAP Monitor service.
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. Type the following command and press Enter. A file called backup.ldif is 
generated.
slapcat -f slapd.conf -l backup.ldif -c
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 LDAP Monitor service.
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.
13. Open a command window on the secondary database computer and change 
directories to …Cisco\Desktop\bin (the drive and exact location of this folder 
depends on where the service was installed).
14. Type the following command and press Enter.
slapadd -f slapd.conf -l backup.ldif -c
15. Type exit and press Enter to close the DOS window. 
16. Type exit and press Enter to close the DOS window. 
17. Restart the LDAP Monitor service on the secondary computer.
18. Restart the LDAP Monitor service on the primary computer.