Contenues dansTrouver plus de documentationRessources d'assistance comprises | Télécharger cet ouvrage au format PDF (1340 Ko)
Chapter 12 Uninstalling the Sun N1 Service Provisioning System 6.0This chapter describes procedures for stopping and uninstalling the Sun N1 Service Provisioning System 6.0 in the following sections: Stopping Applications on Linux and UNIX SystemsBefore 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
Stopping Applications on Windows SystemsBefore 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:
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
Uninstalling Applications on Linux and UNIX SystemsThe 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.
|
# /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.