Manually uninstalling on an HP-UX system
This procedure uninstalls a WAS product from an HP-UX system. After running the uninstaller program, manual steps remove log files and registry entries that can prevent you from reinstalling the product into the original directory. If you are not planning to reinstall, do not uninstall manually.
The uninstaller program removes all profiles by default, including all of the configuration data and applications in each profile. Before you start the uninstall procedure, back up the config folder, the installableApps folder, and the installedApps folder of each profile, if necessary, or use the -OPT removeProfilesOnUninstall="false" parameter on the uninstall command. See Use command line tools for a description of managing configuration files. Back up all applications that are not stored in another location.
Determine the installation root directory for the product so that you remove the correct product and produce a clean system.
Overview
Reinstalling the product into a new directory when files remain from a previous installation can create a coexistence scenario. However, you can delete all files and registry entries to completely remove a WAS product. A clean system lets you reinstall the product into the original directory without coexistence.
Default directories are shown in the following planning table:
Identifier Directory Actual location app_server_root /opt/IBM/WAS/AppServer profile_root /opt/IBM/WAS/AppServer/profiles plugins_root /opt/IBM/WAS/Plugins
The installation wizard and the Profile Management tool provide an override for your own locations for root directories.
Use the installRegistryUtils command to examine the installation locations for all installed WebSphere Application Server products.
Perform the following procedure to produce a clean system.
Procedure
- Log on as the same user ID who installed the product.
- Run the uninstaller program for the Web server plug-ins for WAS.
If a Web server is configured to run with the appserver, uninstall the plug-ins to remove the configuration from the Web server. See Uninstall the Web server plug-ins for WAS.
- Use the kill command to kill all Java processes running. If running Java processes are not related to WAS products and it is not possible to stop them, stop all WAS product-related processes. Use the following command to determine all processes running:
ps -ef | grep javaStop all WAS-related processes with thekill command.kill -9 java_pid_1 java_pid_2...java_pid_n
- Issue the uninstall command.
If you have already run the uninstaller program or if you cannot run the uninstaller program, skip this step.
app_server_root/uninstall/uninstallSee the description of the uninstall command for more information.
The Uninstaller wizard begins and displays the Welcome panel.
- Use HP-UX System Administration Manager (SAM) to remove packages.
- Start the SAM utility with the /usr/sbin/sam command.
- Verify that your DISPLAY and TERM environment variables are set properly.
- Click Software management.
- Click View installed software.
- Look for WAS entries or IBM HTTP Server entries in the SD list.
- Close the SD list.
- Click Remove local host software.
- Click any of the following instances that display in the SD Remove List:
- IBM HTTP Server
- WSBAA61
- WSPAA61
- WSCAA
- gsk7bas
- Click Actions > Mark for remove.
- Click Actions > Remove.
- Click OK in the Remove analysis dialog box.
- Click Logs to display real-time removal of selected packages.
- Click Done when all packages are removed.
- Exit SAM.
- Search for the packages to verify their removal.
Type swlist | grep WS to show packages for WAS.
Package names for Web server plug-ins for WAS are:
WSPAA61 WSPAA61DGCC WSPAA61DLVC WSPAA61LC WSPAA61WSPC WSPAA61AddBytesHS WSPAA61gskitHP WSPAA61gskitHPC WSPAA61jdkHP
- Type rm -rf app_server_root to remove WAS directories in the app_server_root directory. Do not remove installation root directories for products that you intend to keep. Remove all of the profile directories as well.
- Use the installRegistryUtils command to examine the installation locations for all installed WebSphere Application Server products and remove the desired products from the install registry.
Results
This procedure results in having a clean system. You can reinstall into the same directories now. A clean system has no trace of a previously deleted installation.
Example
Issue the following command:
swlist | grep WSBAA61The following package name is returned:
WSBAA60 6.1.0 IBM WAS
What to do next
Go to Task overview: Installing to begin planning a new installation.
Related tasks
Uninstall manually
Related information
installRegistryUtils command