cc/td/doc/product/rtrmgmt/csrc/100/install
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Removing CSRC

Removing CSRC

You can use the pkgrm command to uninstall a CSRC software package. The installer asks you to confirm that you want to remove the package. You must uninstall the CSRC packages in the opposite order in which the packages were installed. You cannot uninstall CNR until you have uninstalled the CSCOcsrcn package.

Table 6-1 describes what the installer does when you remove specific CSRC packages.


Table 6-1:
What the Installer Does Package

Restores the kas, kcs, kjs, and kxs scripts to the form they were in before you installed CSRC.

CSCOcsrcw

Removes all of the files associated with CSRC, except for the LDAP data and schema files.

All CSRC packages

Removes the /opt/csrc directory, if it is empty.

All CSRC packages

Removing CSRC Packages

When you uninstall the CSCOcsrcd package, the installer does not remove the following:

This chapter describes how to remove a CSRC software package and how to restore the LDAP database to its original state.

Uninstalling CSRC

To uninstall a CSRC package, do the following:

Step 1 Log in as superuser, or if you are already logged in as a normal user, switch to superuser.

Step 2 Enter the following command:

    # pkgrm package
     
    

where package is the identifier for the CSRC package you want to uninstall.

Step 3 At the prompt, enter yes to confirm that you want to remove the CSRC software, or no if you want to abandon the operation.

For example, if the LDAP server is installed on the same system as other CSRC servers and you want to install it on another system, you can use the following command line to uninstall the LDAP server.

# pkgrm CSCOcsrcd

You can then use the pkgadd utility to install the CSCOcsrcd package on the desired system. You must then update the csrc.cfg file on all other systems and reboot the systems. For more information on updating the csrc.cfg file, see the "Updating the csrc.cfg File" section.

Updating the csrc.cfg File

The csrc.cfg file is located in the /conf subdirectory of the CSRC root directory and is installed with every CSRC software package, except CSCOcsrcd. If you move a component from one system to another, you must update the configuration parameters in the csrc.cfg file on each system and then reboot the system.

For example, if you move the LDAP server to another system, you must update the DataStore.ldap-host parameter and any other Data Store Parameters you changed, including the following parameters in the csrc.cfg file:

#Data Store Parameters
DataStore.ldap-host = ldap-host
DataStore.ldap-port = 389
DataStore.ldap-username =
uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot
*DataStore.ldap-password = !ci?Pzl{
DataStore.ldap-search-base = csrcprogramname=csrc,o=NetscapeRoot
 

Note The ldap-password parameter is an encoded password (see the
"Changing Passwords" section). The asterisk at the beginning of the ldap-password parameter line indicates to CSRC that the password is encoded. You can enter a plaintext password for this parameter and remove the asterisk; however, for security purposes Cisco does not recommend that you do this.

Similarly, if you move the CNR server to another system, you must update the CNR.hostname parameter and any other CNR parameters you reconfigure. For example:

#Cisco Network Registrar Parameters
CNR.hostname = cnr-host
CNR.username = admin
#CNR.password = !ciCBw|\LLz[
CNR.pathname = /opt/nwreg2
 

Restoring the Directory Database

Uninstalling CSRC does not automatically remove CSRC data and schema from the LDAP database. After you uninstall CSRC, you can restore the database to its original state by doing one of the following:

Removing CSRC Data from the Database

To remove CSRC data from the NDS database, do the following:

Step 1 Start the Netscape Server Console using the startconsole command.

Step 2 Enter the appropriate administrator username and password.

Step 3 Double-click the hostname entry with the name of your current host computer.

Step 4 Double-click the Server Group folder.

Step 5 Double-click the Directory Server entry. The Directory Service Console window appears.

Step 6 From the Directory Service Console window, select the Directory tab.

Step 7 In the left-hand panel, expand the folders until the Root Directory Node you assigned during CSRC installation is visible.

Step 8 Locate and highlight the csrc folder in the Root Directory Node.

Step 9 In the Edit menu, select Delete.

Step 10 In the confirmation message, click Yes to confirm the deletion.

Step 11 Select OK at the prompt.

Removing CSRC Schema from the Database

To remove CSRC schema from the NDS database, do the following:

Step 1 Start the Netscape Server Console using the startconsole command.

Step 2 Enter the appropriate administrator username and password.

Step 3 Double-click the hostname entry with the name of your current host computer.

Step 4 Double-click the Server Group folder.

Step 5 Double-click the Directory Server entry. The Directory Service Console window appears.

Step 6 From the Directory Service Console window, select the Tasks tab.

Step 7 Click Stop the Directory Server.

Step 8 Wait for a message to appear confirming that the Directory Service has stopped and then click OK.

Step 9 Open a Terminal Window at the UNIX workstation.

Step 10 Navigate to the NDS installation directory.

Step 11 Change to the configuration directory.

Step 12 In the slapd.conf file, remove the lines between the following lines:

    Begin CSRC Changes
    
      . . .
End CSRC Changes
 

Step 13 Save your changes and exit the editor.

Step 14 From the Directory Server Console, click Start the Directory Server to restart the Directory Server.

Step 15 Delete the following files:

Step 16 Ensure that the following directories are empty and then delete them:

Restoring the Database from Backup Media

To restore the LDAP database to its original state using a backup copy of the database, do the following:

Step 1 Enter the following command to stop the servers:

    stop-slapd
     
    

Step 2 Execute the following command to restore the database from the backup copy of the database to the directory you indicate in dirname:

    bak2db dirname
     
    

Step 3 Enter the following command to restart the servers:

    start-slapd
     
    


hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Oct 15 12:56:28 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.