Guest

Cisco Unified Communications Manager (CallManager)

DCD Backup and Restore by dcbckdib and Migration Script

Document ID: 67990



Contents

Introduction
Prerequisites
      Requirements
      Components Used
      Conventions
DCD Backup and Restore - dcbckdib
      Backup
      Restore
DCB Backup and Restore - Migration Script
      Backup
      Restore
NetPro Discussion Forums - Featured Conversations
Related Information

Introduction

This document describes two ways to backup and restore Directory Service (DCD) in the Cisco CallManager environment. One way is to run the dcbckdib utility and the other is to run the migration script.

Prerequisites

Requirements

Cisco recommends that you have knowledge of these topics:

  • Cisco CallManager

  • Directory Service

Components Used

The information in this document is based on these software and hardware versions:

  • Cisco CallManager 3.3 and later

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Conventions

Refer to Cisco Technical Tips Conventions for more information on document conventions.

DCD Backup and Restore - dcbckdib

Backup

The DCD backup by dcbckdib is a binary backup. It is used when these conditions are met:

  • DCD is in good order.

  • Restore to the same version of DCD.

Complete these steps to back up the DCD by dcbckdib.

  1. Select Run from the Windows Start menu.

  2. Type cmd to open a command prompt window.

  3. Enter dcbckdib BACKUP <backup directory> to create a directory and place the backup in a subdirectory.

    Figure 1 shows a successful run where arrow A displays the command format, arrow B displays the progress, and arrow C displays the backup file named DATABASE.DAT.

    Figure 1—Backup - dcbckdib

    dcd-backup-restore-dcbckdib-1.gif

Restore

Complete these steps to restore the DCD by dcbckdib.

  1. Stop the DC Directory Server.

    1. Select Start > Programs > Administrative Tools > Services. The Services window appears (see Figure 2).

      Figure 2—Services

      dcd-backup-restore-dcbckdib-2.gif

    2. Right-click DC Directory Server.

    3. Click Stop in the pop-up window (see Figure 2).

      Note: If you fail to stop the DC Directory Server, the restore fails as shown in Figure 3.

      Figure 3—Restore DCD Failure

      dcd-backup-restore-dcbckdib-3.gif

  2. Run the \dcdsrvr\bin\dcbckdib /y restore \tmp command to restore the DCD. Figure 4 displays a successful DCD restore by running dcbckdib.

    Figure 4—Successful DCD Restore - dcbckdib

    dcd-backup-restore-dcbckdib-4.gif

DCB Backup and Restore - Migration Script

Backup

The backup files created when you run a migration script are flat text files which can be restored to any version of DCD.

Complete these steps to backup the DCD by running the migration script.

  1. Select Run from the Windows Start menu.

  2. Type cmd to open a command prompt window.

  3. Run the \dcdsrvr\bin\avvid_migrate_save <Server Name> <Password> command. Figure 5 displays a successful run.

    Figure 5—A Successful Backup Run - Backup Migration Script

    dcd-backup-restore-dcbckdib-5.gif

    The backup run keeps all the backup files in the c:\dcdsrvr\run\dcx500\config\Migration-backup directory (see Figure 6) which are used for the future restore.

    Figure 6—Backup Files - Backup Migration Script

    dcd-backup-restore-dcbckdib-6.gif

  4. Check the avvid_migrate_save.log file which is located in the c:\dcdsrvr\log directory. This output demonstrates the log of a successful backup run:

    ----------------------------------------------------------------
    Script avvid_migrate_save.pl v2.0(8) executed at 10/21/2005  07:19:26
    ldap_search: No such object
    ldap_search: matched: o=cisco.com
    ldap_search: additional info: No such object
    ldap_search: No such object
    ldap_search: matched: ou=ccn,o=cisco.com
    ldap_search: additional info: No such object
    ldap_search: No such object
    ldap_search: matched: ou=ccn,o=cisco.com
    ldap_search: additional info: No such object
    ldap_search: No such object
    ldap_search: matched: ou=ccn,o=cisco.com
    ldap_search: additional info: No such object
    ldap_search: No such object
    ldap_search: matched: ou=ccn,o=cisco.com
    ldap_search: additional info: No such object
    Saving User Information... 
    Time: 10/21/2005  07:19:26
    Saving Profile Information... 
    Time: 10/21/2005  07:19:32
    Saving Apps20 Information... 
    Time: 10/21/2005  07:19:37
    Saving Admin Information... 
    Time: 10/21/2005  07:19:42
    Saving PA node Information... 
    Time: 10/21/2005  07:19:48
    Saving E911 node Information... 
    Time: 10/21/2005  07:19:58
    Saving systemProfile... 
    Time: 10/21/2005  07:20:04
    Saving MITRA data... 
    Time: 10/21/2005  07:20:09
    Saving Groups data... 
    Time: 10/21/2005  07:20:14
    
    End avvid_migrate_save.pl: 10/21/2005  07:20:19
    ---------------------------------------------------------------------

Restore

Complete these steps to restore the DCD by running the migration script.

  1. Select Run from the Windows Start menu.

  2. Type cmd to open a command prompt window.

  3. Run the \dcdsrvr\bin\avvid_migrate_restore <Server Name> <Password> command. Figure 7 displays a successful run.

    Figure 7—A Successful Restore Run - Restore Migration Script

    dcd-backup-restore-dcbckdib-7.gif

  4. Check the avvid_migrate_restore.log file which is located in the c:\dcdsrvr\log directory. This output demonstrates the log of a successful restore run:

    ----------------------------------------------------------------
    Script avvid_migrate_restore.pl v2.0(8) executed at 10/21/2005  07:27:37
    Restoring Profile Information... 
    Time: 10/21/2005  07:27:37
    Restoring User Information... 
    Time: 10/21/2005  07:27:42
    Restoring Admins Information... 
    Time: 10/21/2005  07:27:48
    Restoring system profile Information... 
    Time: 10/21/2005  07:27:54
    Restoring Groups Information... 
    Time: 10/21/2005  07:27:59
    
    End avvid_migrate_restore.pl: 10/21/2005  07:28:04
    ------------------------------------------------------------------------
     ** Module ReconfigDCD ** :  in isHex
     ** Module ReconfigDCD ** : The number of characters in the hex 
                                string passed is 18.
     ** Module ReconfigDCD ** : The string passed is a valid hex string.
     ** Module ReconfigDCD ** :  out isHex. Returning 1
     ** Module ReconfigDCD ** : Inside runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runRemoteLDAPModifyScript..
     ** Module ReconfigDCD ** : Running the ldif script, 
                                C:\dcdsrvr\run\DCX500\config\Migration-Backup
                                \avvidprofiles.txt..
     ** Module ReconfigDCD ** : Inside createProcessNoWindow
     ** Module ReconfigDCD ** : Exit createProcessNoWindow
     ** Module ReconfigDCD ** : Replaced all occurances of findString in the 
                                file C:\dcdsrvr\log\avvidprofiles.txt.out with 
                                replaceString
     ** Module ReconfigDCD ** : C:\dcdsrvr\log\avvidprofiles.txt.reject
     ** Module ReconfigDCD ** : Exit runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runRemoteLDAPModifyScript..
     ** Module ReconfigDCD ** : Running the ldif script, C:\dcdsrvr\run\DCX500\config
                                \Migration-Backup\avvidusers.txt..
     ** Module ReconfigDCD ** : Inside createProcessNoWindow
     ** Module ReconfigDCD ** : Exit createProcessNoWindow
     ** Module ReconfigDCD ** : Replaced all occurances of findString in the 
                                file C:\dcdsrvr\log\avvidusers.txt.out with 
                                replaceString
     ** Module ReconfigDCD ** : C:\dcdsrvr\log\avvidusers.txt.reject
     ** Module ReconfigDCD ** : Exit runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runRemoteLDAPModifyScript..
     ** Module ReconfigDCD ** : Running the ldif script, C:\dcdsrvr\run\DCX500\
                                config\Migration-Backup\avvidadmins.txt..
     ** Module ReconfigDCD ** : Inside createProcessNoWindow
     ** Module ReconfigDCD ** : Exit createProcessNoWindow
     ** Module ReconfigDCD ** : Replaced all occurances of findString in the file 
                                C:\dcdsrvr\log\avvidadmins.txt.out with replaceString
     ** Module ReconfigDCD ** : C:\dcdsrvr\log\avvidadmins.txt.reject
     ** Module ReconfigDCD ** : Exit runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runRemoteLDAPModifyScript..
     ** Module ReconfigDCD ** : Running the ldif script, C:\dcdsrvr\run\DCX500
                                \config\Migration-Backup\avvidsystemprofile.txt..
     ** Module ReconfigDCD ** : Inside createProcessNoWindow
     ** Module ReconfigDCD ** : Exit createProcessNoWindow
     ** Module ReconfigDCD ** : Replaced all occurances of findString in the 
                                file C:\dcdsrvr\log\avvidsystemprofile.txt.out 
                                with replaceString
     ** Module ReconfigDCD ** : C:\dcdsrvr\log\avvidsystemprofile.txt.reject
     ** Module ReconfigDCD ** : Exit runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runLDAPModifyScript..
     ** Module ReconfigDCD ** : Inside runRemoteLDAPModifyScript..
     ** Module ReconfigDCD ** : Running the ldif script, C:\dcdsrvr\run\DCX500
                                \config\Migration-Backup\avvidGroupsdata.txt..
     ** Module ReconfigDCD ** : Inside createProcessNoWindow
     ** Module ReconfigDCD ** : Exit createProcessNoWindow
     ** Module ReconfigDCD ** : Replaced all occurances of findString in the 
                                file C:\dcdsrvr\log\avvidGroupsdata.txt.out 
                                with replaceString
     ** Module ReconfigDCD ** : C:\dcdsrvr\log\avvidGroupsdata.txt.reject
     ** Module ReconfigDCD ** : Exit runLDAPModifyScript..
    
    -------------------------------------------------------------------------

NetPro Discussion Forums - Featured Conversations

Networking Professionals Connection is a forum for networking professionals to share questions, suggestions, and information about networking solutions, products, and technologies. The featured links are some of the most recent conversations available in this technology.
NetPro Discussion Forums - Featured Conversations for Voice
Service Providers: Voice over IP
Voice & Video: Voice over IP
Voice & Video: IP Telephony
Voice & Video: IP Phone Services for End Users
Voice & Video: Unified Communications
Voice & Video: IP Phone Services for Developers
Voice & Video: General

Related Information



Updated: Oct 26, 2006Document ID: 67990