This chapter describes procedures for uninstalling the N1 Grid Service Provisioning System 5.0 in the following sections:
The procedure to uninstall the N1 Grid Service Provisioning System 5.0 depends upon the application you want to install and on which operating system it is running.
If you want to uninstall the Solaris OS Master Server or CLI Client, use the instructions in How to Uninstall a Solaris OS Master Server or CLI Client.
If you want to uninstall the Solaris OS Remote Agent or Local Distributor or any of the applications on Red Hat or IBM AIX servers, use the instructions in How to Uninstall File-Based Applications on Solaris OS, Red Hat Linux, and IBM AIX Systems.
The Solaris OS Master Server and CLI Client are installed as packages. The uninstall script removes only 5.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.
Begin the uninstallation.
# /N1SPS5.0-home/app_directory/bin/cr_uninstall_app.sh |
N1SPS5.0-home is the directory where you installed the application. The default directory is /opt/SUNWn1sps/N1_Grid_Service_Provisioning_System_5.0. app_directory is one of the following values:
server – uninstalls a Master Server
cli – uninstalls a 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 SUNWspapp 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 SUNWspsc 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.
If you are uninstalling a Remote Agent, change the permissions on files in the /protect directory.
% chmod -R 755 /N1SPS5.0-home/agent/bin/protect |
N1SPS5.0-home is the directory where you installed the Remote Agent.
Delete the directory that contains the application that you want to uninstall.
# rm -r /N1SPS5.0-home/app-directory |
N1SPS5.0-home is the directory where you installed the application. The default directory on Solaris OS and AIX is /opt/SUNWn1sps/. The default directory on Red Had Linux is /opt/sun.app-directory is one of the following values:
server – uninstalls a Master Server
agent – uninstalls a Remote Agent
cli – uninstalls a CLI Client
ld – uninstalls a Local Distributor
If you are uninstalling all of the applications from the machine, when the N1SPS5.0–home directory contains no more application directories, delete the common/ directory.
# rm -r N1SPS5.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 * * * N1SPS5.0-home/server/bin/roxdbcmd vacuumdb -d rox > /dev/null 2> /dev/null |
N1SPS5.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, 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.