[Version 5.0.1 and later]Manually uninstalling on HP-UX platforms

This task describes how to uninstall the product on an HP-UX platform.

Before you begin

Use the following procedure to remove all remnants of a WebSphere Application Server product. This produces a clean system that allows you to reinstall the product. Before you begin, verify that you are removing only the product instance that you intend to remove and not coexisting products, or products that you might have migrated and do not intend to delete. It is important to know the installation root directory for the product instance that you are removing.

Why and when to perform this task

Use this procedure to uninstall WebSphere Application Server products. Uninstall the products in the following sequence when you are uninstalling more than one product:

  1. [5.0 only][Version 5.0.1][Version 5.0.2]WebSphere Application Server Enterprise on Network Deployment
  2. WebSphere Application Server Network Deployment
  3. [5.0 only][Version 5.0.1][Version 5.0.2]WebSphere Application Server Enterprise on the base product
  4. WebSphere Application Server (base product)

One of the ways that this procedure completely uninstalls the product is by completely deleting the installation root directory for the product. References to the directory are abbreviated install_root in some of the steps. The default install_root for WebSphere Application Server is the /opt/WebSphere/AppServer directory.

The default directory for IBM HTTP Server is /opt/IBMHttpServer.

[5.0 only][Version 5.0.1][Version 5.0.2]Default installation roots for the Enterprise product are:

Steps for this task

  1. Use the kill -9 java_pid command to kill each Java process that is running.

    If there are Java processes running that are not related to WebSphere Application Server products, and it is not possible to stop them, stop all WebSphere Application Server product-related processes. Use the following command to determine all processes that are running:

    ps -ef | grep java
    Stop all WebSphere Application Server-related processes with the kill -9 java_pid_1 java_pid_2...java_pid_n command.

  2. Halt any running WebSphere MQ queue managers.
    1. Type dspmq to show the state of any queue managers.
    2. Type endmqm -i for each running queue manager.
    3. Type $ ipcs -a to check for any IPCs.
    4. Type $ ipcrm -[qms] [ID] to delete the IPCs.
  3. Search for mqm processes by typing: ps -eaf | grep mqm or ps -eaf | grep ^MQ*. Type kill -9 amq_pid_1 amq_pid_2 ... amq_pid_n to stop any MQ processes that are running.
    Do not remove IBM WebSphere MQ packages if you have installed IBM WebSphere MQ as a separate product. If you have other instances of WebSphere Application Server products on the same machine, and if they use the embedded messaging feature, do not remove the embedded messaging packages or directories.

    You can use a ps -e | grep #AMQ_COMMAND#' command structure to specify the command for amq to find each amq pid.

  4. Search for other related packages.
    Do not remove IBM WebSphere MQ packages if you have installed IBM WebSphere MQ as a separate product. If you have other instances of WebSphere Application Server products on the same machine, and if they use the embedded messaging feature, which is based on WebSphere MQ, do not remove the WebSphere MQ packages or directories.

    If you do intend to remove embedded messaging feature packages, use HP-UX System Administration Manager (SAM) to remove packages for the instance that you intend to delete. Then search for the packages to verify their removal.

    1. Start the SAM utility and verify that your DISPLAY and TERM environment variables are set properly.
      1. From a command line, issue the /usr/sbin/sam command.
      2. Click Software management.
      3. Click View installed software.
      4. Look for these two entries in the SD list:
        • MQSERIES -> B.11.530.01 WebSphere MQ for HP-UX
        • MQSERIES -> B.11.530.03 WebSphere MQ Update (U485562) for HP-UX
        • MQSERIES -> B.11.530.04 WebSphere MQ Update (U486875) for HP-UX
      5. Close the SD list.
      6. Click Remove local host software.
      7. On the SD Remove list, remove these instances, if they exist:
        • MQSERIES -> B.11.530.01 WebSphere MQ for HP-UX
        • MQSERIES -> B.11.530.03 WebSphere MQ Update (U485562) for HP-UX
        • MQSERIES -> B.11.530.04 WebSphere MQ Update (U486875) for HP-UX
        1. Highlight the MQSERIES instances on the SD List.
        2. Click Actions > Remove....
        3. On Remove Analysis dialog, verify that Status is ready.
        4. Click OK.
        5. Check the result message displayed on the dialog.
        6. If the removal fails, follow the instructions that appear.
      8. Return to the SD Remove List.
      9. Click IBM HTTP Server, MQSERIES, WEMPS, WSBAA, WSNAA, gsk7bas. Generally, you can identify packages that belong to V5.1 by the 51 on the end of WSB packages and WSN packages. However, WSBM and WSNM packages are for the embedded messaging feature and do not include the 51 on the end as an identifier.
      10. Click Actions > Mark for remove.
      11. Click Actions > Remove.
      12. Click OK in the Remove analysis dialog box.
      13. Click Logs to display real-time removal of selected packages.
      14. Click Done when all packages are removed.
      15. Exit SAM.
    2. Verify that you removed the packages that you intend to remove. Type these commands to search for related packages:
      1. swlist | grep WS to show packages for WebSphere Application Server products and the IBM HTTP Server product.
      2. swlist | grep WEMPS to show packages for the embedded messaging feature or for the IBM WebSphere MQ product. You can delete these packages. If you have other instances of WebSphere Application Server products on the same machine, and if they use the embedded messaging feature, do not remove the embedded messaging packages or directories.
      3. swlist | grep MQ to show packages for the embedded messaging feature or for the IBM WebSphere MQ product.

  5. Type rm -rf /opt/WebSphere/AppServer/ to remove WebSphere Application Server directories in the instance installed in the /opt/WebSphere/AppServer installation root. Do not remove installation root directories for products that you intend to keep.
  6. Type rm -rf /opt/WebSphere/AppServer/ /opt/WebSphere/DeploymentManager/ to remove multiple directories. Again, do not remove directories for products that you intend to keep.
  7. Type rm -fr /var/wemps /opt/wemps if you are certain that there is no embedded messaging data to preserve.
    If you have other instances of WebSphere Application Server products on the same machine, and if they use the embedded messaging feature, do not remove the embedded messaging packages or directories.
  8. Type rm -rf IBMHttpServer to delete the IBM HTTP Server directory.
  9. If you do not have IBM WebSphere MQ installed as a separate product on this machine, and if you do not have the embedded messaging server and client feature installed on this machine, type rm -fr /var/mqm /opt/mqm if you are certain that there is no embedded messaging data to preserve. If you have other instances of WebSphere Application Server products on the same machine, and if they use the embedded messaging feature, do not remove the embedded messaging packages or directories.

    If you installed IBM WebSphere MQ as a separate product on this host to use as the messaging provider, and if you do not want to continue using WebSphere MQ, you can uninstall the product as described in the WebSphere MQ information.

Results

When you finish, the product is completely uninstalled. You are now ready to reinstall. Reinstalling successfully into the same directory is the final indicator of success in removing the original product.

What to do next

After uninstalling the product, see Installing WebSphere Application Server products to begin planning your next installation.

Related tasks
Uninstalling manually



Searchable topic ID:   tins_uninstallHpux
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/ae/tins_uninstallHpux.html

Library | Support | Terms of Use | Feedback