Uninstalling enterprise applications using the wsadmin scripting tool

You can use the AdminApp object or the AdminApplication script library to uninstall applications.

Before you begin

啟動 wsadmin Scripting 工具。

About this task

There are two ways to complete this task. This topic uses the AdminApp object to uninstall enterprise applications. Alternatively, you can use the scripts in the AdminApplication script library to install, uninstall, and administer your application configurations.

Scripting 程式庫提供一組自動執行最常見管理功能的程序。 您可以個別執行每個 Script 程序,也可以將若干程序結合起來,以快速開發新的 Script。

Procedure

  1. Uninstall the application:

    Specify the name of the application you want to uninstall, not the name of the enterprise archive (EAR) file.

    • Using Jacl:
      $AdminApp uninstall application1
    • Using Jython:
      AdminApp.uninstall('application1')
    Table 1. uninstall command elements. Run the uninstall command to remove an application from a server.
    Element Description
    $ is a Jacl operator for substituting a variable name with its value
    AdminApp is an object supporting application objects management
    uninstall is an AdminApp command
    application1 is the name of the application to uninstall
  2. Save the configuration changes.
    請利用下列指令範例來儲存您的配置變更:
    AdminConfig.save()
  3. In a network deployment environment only, synchronize the node.
    Use the syncActiveNodes script from the AdminNodeManagement script library to synchronize each active node in your configuration:
    AdminNodeManagement.syncActiveNodes()

Results

Uninstalling an application removes it from the application server configuration and from each server that the application was installed on. The system deletes the application binaries (EAR file contents) from the installation directory. This occurs when the configuration is saved for single server product versions or when the configuration changes are synchronized from the deployment manager to the individual nodes for network deployment configurations.


指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: July 9, 2016 11:19
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_uninstall
檔名:txml_uninstall.html