Sun N1 Service Provisioning System 5.2 Installation Guide

Chapter 11 Uninstalling the Sun N1 Service Provisioning System 5.2

This chapter describes procedures for uninstalling the Sun N1 Service Provisioning System 5.2 in the following sections:

Uninstalling Applications on Linux and UNIX Systems

The procedure to uninstall the Sun N1 Service Provisioning System 5.2 depends upon the application you want to uninstall and on which operating system it is running.

ProcedureHow to Uninstall a Solaris OS Master Server or CLI Client

The Solaris OS Master Server and CLI Client are installed as packages. The uninstall script removes only 5.2 versions of the Master Server or CLI Client.

Steps
  1. On the server that you want to uninstall the application, verify that you are not in the directory of the application that you want to uninstall.

  2. Stop the Master Server and CLI Client.

  3. Begin the uninstallation.


    # /N1SPS5.2-home/app_directory/bin/cr_uninstall_app.sh
    

    N1SPS5.2-home is the directory where you installed the application. The default directory is /opt/SUNWn1sps/N1_Service_Provisioning_System_5.2. app_directory is one of the following values:

    • server – Master Server

    • cli – CLI Client

    app is one of the following values:

    • ms – uninstalls the Master Server

    • cli – uninstalls the CLI Client

    The following message appears when the uninstallation is complete.


    Successfully removed SUNWspsapp
    Successfully removed SUNWspsc1
    Successfully removed SUNWspsj1

    app is ms when uninstalling a Master Server and cl when uninstalling a CLI Client.


    Note –

    The SUNWspsc1 and SUNWspsj1 packages are not removed if another application is installed on this server. For example, if you have a Master Server and a CLI Client both installed on the same server, when you uninstall only the Master Server, the SUNWspsc1 and SUNWspsj1 packages remain on the server until you uninstall the CLI Client.


ProcedureHow to Uninstall File-Based Applications on Linux and UNIX Systems

Steps
  1. On the server that you want to uninstall the application, verify that you are not in the directory of the application you want to uninstall.

  2. Stop the application that you want to uninstall.

  3. If you are uninstalling a Remote Agent, change the permissions on files in the /protect directory.


    % chmod -R 755 /N1SPS5.2-home/agent/bin/protect
    

    N1SPS5.2-home is the directory where you installed the Remote Agent.

  4. Delete the directory that contains the application that you want to uninstall.


    # rm -r /N1SPS5.2-home/app-directory
    

    N1SPS5.2-home is the directory where you installed the application. The default directory on UNIX systems is /opt/SUNWn1sps/. The default directory on Linux systems is /opt/sun. The value for app-directory is one of the following:

    • server – uninstalls a Master Server

    • agent – uninstalls a Remote Agent

    • cli – uninstalls a CLI Client

    • ld – uninstalls a Local Distributor

  5. If you are uninstalling all of the applications from the machine, when the N1SPS5.2–home directory contains no more application directories, delete the common/ directory.


    # rm -r N1SPS5.2-home/common
    

    The uninstallation is complete.

ProcedureHow to Disable Automatic Database Optimization

If you uninstall a Red Hat Linux Master Server, you must manually remove the entry from the crontab file that instructs the system to automatically optimize the database. The uninstall script for Solaris Master Servers automatically removes this entry from the cronjob file.

Steps
  1. As the user that owns the Master Server, list the current crontab and direct the output to a file.


    # crontab -l > newcrontabfile
    
  2. Open the newcrontab file in a text editor.

  3. Remove the following line from the newcrontab file.


    MM HH * * * N1SPS5.2-home/server/bin/roxdbcmd vacuumdb -d rox > /dev/null 2> /dev/null

    N1SPS5.2-home is the home directory of the Master Server.

  4. Save the newcrontab file.

  5. Update the crontab.


    # crontab newcrontabfile
    

Uninstalling Applications on Windows Systems

To uninstall applications on Windows servers, use the Add and Remove Programs function available in the Windows Control Panel. When you perform an uninstallation, ensure that the Microsoft Management Console with Services snap-in, also know as the Services console, is not open. Otherwise, the Master Server, Remote Agent, or Local Distributor might not uninstall properly.