This chapter describes procedures for stopping and uninstalling the Sun N1 Service Provisioning System 6.0 in the following sections:
Before you uninstall the Sun N1 Service Provisioning System 6.0 applications, you must first stop the applications. The following table lists the commands to stop the Sun N1 Service Provisioning System 6.0 applications on Linux and UNIX systems. N1SPS6.0-home is the home directory of the application.
Table 12–1 Stop Commands for Linux and UNIX System Applications
Application |
Path to Command |
Command to Stop |
---|---|---|
Master Server |
N1SPS6.0-home/server/bin/ |
For the Solaris 10 release, type svcadm disable spsms. For all other releases, type cr_server stop |
Local Distributor |
N1SPS6.0-home/ld/bin/ |
For the Solaris 10 release, type svcadm disable spsld. For all other releases, type cr_ld stop |
Remote Agent |
N1SPS6.0-home/agent/bin/ |
For the Solaris 10 release, type svcadm disable spsra. For all other releases, type cr_agent stop |
Before you uninstall the Sun N1 Service Provisioning System 6.0 applications, you must first stop the applications. On Windows servers, you can stop the Master Server, Local Distributor, or Remote Agent in the following ways:
Start Menu – Click the Start menu, then select All Programs -> N1 Service Provisioning System. Select the Stop entry for the application you want to stop, for example, Stop Server.
Windows Control Panel – Click the Start menu, then Control Panel-> Administrative Tools -> Services. In the Services panel, select the name of the application and stop it.
Command Line – In a command line window, type the net stop command for the application you want to stop. For example, to stop the Master Server, type the following command:
C:> net stop crserver60 |
The following tables list the names of the various services for Windows systems.
Table 12–2 Names of Services to Stop for the Windows Master Server, Local Distributor, and Remote Agent
Application |
Name of Service to Stop |
Display Name of Service |
---|---|---|
Master Server |
crserver60 |
Sun N1 Service Provisioning System 6.0 Server |
postmaster60 |
Sun N1 Service Provisioning System 6.0 PostgresSQL Server |
|
crprepdb60 |
Sun N1 Service Provisioning System 6.0 Database Preparer |
|
Local Distributor |
crdistributor |
Sun N1 Service Provisioning System 6.0 Distributor |
Remote Agent |
cragent |
Sun N1 Service Provisioning System 6.0 Agent |
The procedure to uninstall the Sun N1 Service Provisioning System 6.0 depends upon the application you want to uninstall and on which operating system it is running.
If you want to uninstall a package-based Master Server or CLI Client, use the instructions in How to Uninstall a Package Based Master Server or CLI Client. Use this procedure to uninstall Solaris OS Master Servers or CLI clients. or Linux Master Servers and CLI clients that were installed with the Linux RPM installer.
If you want to uninstall the file-based Solaris OS Remote Agent or Local Distributor or any of the applications on other Linux or UNIX servers, use the instructions in How to Uninstall File-Based Applications on Linux and UNIX Systems. Use this procedure if you used the file-based installer for the Linux Master Server and CLI client.
The Solaris OS Master Server and CLI Client are installed as packages. You can also choose to install the Linux Master Server and CLI client as RPM packages. The uninstall script removes only 6.0 versions of the Master Server or CLI Client.
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.
Stop the Master Server and CLI Client.
For more information, see Stopping Applications on Linux and UNIX Systems.
Begin the uninstallation.
# /N1SPS6.0-home/app_directory/bin/cr_uninstall_app.sh |
N1SPS6.0-home is the directory where you installed the application. The default directory is /opt/SUNWn1sps/N1_Service_Provisioning_System_6.0. 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.
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.
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.
Stop the application that you want to uninstall.
To stop a Remote Agent on a Solaris 10 system, type the following commands.
# svcadm disable spsra # svccfg delete -f spsra |
To stop a Remote Agent on a Solaris 8 or Solaris 9 system, type the following command.
# N1SPS6.0-home/agent/bin/cr_agent stop |
Where N1SPS6.0-home is the directory where you installed the application.
To stop a Local Distributor on a Solaris 10 system, type the following commands.
# svcadm disable spsld # svccfg delete -f spsld |
To stop a Local Distributor on a Solaris 8 or Solaris 9 system, type the following commands.
# N1SPS6.0-home/agent/bin/cr_ld stop |
Where N1SPS6.0-home is the directory where you installed the application.
If you are uninstalling a Remote Agent, change the permissions on files in the /protect directory.
% chmod -R 755 /N1SPS6.0-home/agent/bin/protect |
N1SPS6.0-home is the directory where you installed the Remote Agent.
Delete the directories that contain the application that you want to uninstall.
To delete the master server or CLI application, type the following command.
# rm -r /N1SPS6.0-home/app-directory |
N1SPS6.0-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
cli – uninstalls a CLI Client
To delete the Remote Agent directories, choose the appropriate steps.
For Solaris 10 systems, type the following commands.
# rm -rf /var/svc/manifest/application/management/spsra.xml # rm -rf N1SPS6.0-home |
Where N1SPS6.0-home is the directory where you installed the application.
For Solaris 8 or Solaris 9 systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsra # rm /etc/rc3.d/*spsra |
Where N1SPS6.0-home is the directory where you installed the application.
For HP–UX systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsra # rm /sbin/init.d/spsra /sbin/rc2.d/*spsra |
Where N1SPS6.0-home is the directory where you installed the application.
For SuSE Linux systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsra # rm /etc/init.d/spsra /etc/init.d/rc3.d/*spsra /etc/init.d/rc5.d/*spsra |
Where N1SPS6.0-home is the directory where you installed the application.
For Red Hat Linux systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsra # rm /etc/rc.d/init.d/spsra /etc/rc3.d/*spsra /etc/rc5.d/*spsra |
Where N1SPS6.0-home is the directory where you installed the application.
For AIX systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsra # rm /etc/rc.d/init.d/spsra /etc/rc.d/rc2.d/*spsra |
Where N1SPS6.0-home is the directory where you installed the application.
To delete the local distributor directories, choose the appropriate steps.
For Solaris 10 systems, type the following commands.
# rm -rf /var/svc/manifest/application/management/spsld.xml # rm -rf N1SPS6.0-home |
Where N1SPS6.0-home is the directory where you installed the application.
For Solaris 8 or Solaris 9 systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsld # rm /etc/rc3.d/*spsld |
Where N1SPS6.0-home is the directory where you installed the application.
For HP–UX systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsld # rm /sbin/init.d/spsld /sbin/rc2.d/*spsld |
Where N1SPS6.0-home is the directory where you installed the application.
For SuSE Linux systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsld # rm /etc/init.d/spsld /etc/init.d/rc3.d/*spsld /etc/init.d/rc5.d/*spsld |
Where N1SPS6.0-home is the directory where you installed the application.
For Red Hat Linux systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsld # rm /etc/rc.d/init.d/spsld /etc/rc3.d/*spsld /etc/rc5.d/*spsld |
Where N1SPS6.0-home is the directory where you installed the application.
For AIX systems, type the following commands.
# rm -rf N1SPS6.0-home # rm /etc/init.d/spsld # rm /etc/rc.d/init.d/spsld /etc/rc.d/rc2.d/*spsld |
Where N1SPS6.0-home is the directory where you installed the application.
If you are uninstalling all of the applications from the machine, when the N1SPS6.0–home directory contains no more application directories, delete the common/ directory.
# rm -r N1SPS6.0-home/common |
The uninstallation is complete.
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.
As the user that owns the Master Server, list the current crontab and direct the output to a file.
# crontab -l > newcrontabfile |
Open the newcrontab file in a text editor.
Remove the following line from the newcrontab file.
MM HH * * * N1SPS6.0-home/server/bin/roxdbcmd vacuumdb -d rox > /dev/null 2> /dev/null |
N1SPS6.0-home is the home directory of the Master Server.
Save the newcrontab file.
Update the crontab.
# crontab newcrontabfile |
To uninstall applications on Windows servers, first stop the application, then 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.
After you remove the software that you want to uninstall, manually stop the crprepdb.exe service to complete the uninstallation.
For more information about how to stop Sun N1 Service Provisioning System 6.0 applications on Windows systems, see Stopping Applications on Windows Systems.