[AIX Solaris HP-UX Linux Windows][IBM i]

使用响应文件卸载修订包

您可以使用 Installation Manager 响应文件将本产品回滚到较早版本。

开始之前

在回滚过程中,Installation Manager 必须访问较早版本的软件包中的文件。缺省情况下,在您安装软件包时,这些文件会存储在您的计算机上。如果已更改缺省设置或删除已保存的文件,那么 Installation Manager 需要访问用于安装较早版本的存储库。

有关使用 Installation Manager 的更多信息,请阅读 IBM® Installation Manager 文档

过程

  1. 登录系统。

    [IBM i]确保使用具有 *ALLOBJ 和 *SECADM 特权的用户概要文件登录到 IBM i 系统。

  2. 创建响应文件以回滚产品。

    响应文件是一个 XML 文件,其中包含更新产品所需的数据,例如,要更新的产品和安装目录。

    如果您的回滚需要访问已认证的存储库,那么您还必须有凭证存储文件以及主密码文件(可选)。有关存储认证凭证的更多信息,请参阅 IBM Installation Manager 文档中的存储凭证

    要获取用于更新 WebSphere® Application Server 产品的样本响应文件,请参阅示例

  3. 请确保要回滚的产品不在运行中。
  4. 启动命令行。

    [IBM i]在 CL 命令行上,运行 STRQSH 命令以启动 Qshell 命令 shell。

  5. 验证您是否具有在所选目录中安装修订包需要的许可权。
  6. 切换到 Installation Manager 安装目录中的 eclipse/tools 子目录。
  7. 运行 imcl 命令并在 input 参数中指定响应文件的位置。
    例如:
    • [Windows]管理员或非管理员:
      imcl.exe
        input C:\temp\rollback_response_file.xml 
        -log C:\temp\rollback_log.xml 
        -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password.txt
    • [AIX][HP-UX][Linux][Solaris]管理员:
      ./imcl
        input /var/temp/rollback_response_file.xml
        -log /var/temp/rollback_log.xml
        -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password.txt
    • [AIX][HP-UX][Linux][Solaris]非管理员:
      ./imcl
        input user_home/var/temp/rollback_response_file.xml 
        -log user_home/var/temp/rollback_log.xml
        -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password.txt
    • [IBM i]
      ./imcl -acceptLicense 
        input $HOME/WASFiles/temp/rollback_response_file.xml 
        -log $HOME/WASFiles/temp/rollback_log.xml
        -secureStorageFile $HOME/WASFiles/temp/credential.store -masterPasswordFile $HOME/WASFiles/temp/master_password.txt 
    注: 程序可能会将重要的安装后指示信息写至标准输出。
  8. 可选: 列出所有已安装的软件包以验证回滚。
    [AIX][HP-UX][Linux][Solaris][IBM i]
    ./imcl listInstalledPackages -long
    [Windows]
    imcl.exe listInstalledPackages -long

示例

以下样本响应文件显示在 Windows 操作系统中,如何将 WebSphere Application Server Network Deployment 产品回滚到较早的版本。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
<server>
  <repository location='https://www.ibm.com/software/repositorymanager/com.ibm.websphere.ND.v90'/>
</server>
<profile id='IBM WebSphere Application Server V9.0' installLocation='C:\Program Files\IBM\WebSphere\AppServer'>
  <data key='eclipseLocation' value='C:\Program Files\IBM\WebSphere\AppServer'/>
</profile>
<rollback>
  <offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.websphere.ND.v90' version='9.0.0.20161025_2108'/>
</rollback>
</agent-input>
查找概要文件标识
要查找概要文件标识(<profile . . . id='profile_ID' . . . .><offering . . . profile='profile_ID' . . . .>),请从安装了 Installation Manager 的目录的 eclipse/tools 子目录中运行以下命令:
imcl listInstallationDirectories -verbose
概要文件名与软件包组名相同。
回滚产品及可选功能部件

要查找安装的产品标识 (<offering . . . id='offering_ID' . . . .>),请从 app_server_root/bin 目录中运行 historyInfogenHistoryReport 命令。

回滚产品时,响应文件必须包含在先前产品安装中使用的功能部件。如果您不将这些功能部件添加至响应文件,那么 Installation Manager 会将其除去。

下表显示了产品标识、每个产品的可选功能部件和缺省功能部件:
表 1. 产品标识和可选功能部件
产品标识 可选功能部件标识 缺省功能部件
WebSphere Application Server Network Deployment

com.ibm.websphere.ND.v90

  • core.feature: WebSphere Application Server
    必须指定此功能部件才能指定以下可选子功能部件:
    • samples:样本应用程序
    • thinclient:独立瘦客户机和资源适配器
    • embeddablecontainer:可嵌入 EJB 容器
    • ejbdeploy:用于 EJB 3.0 以前的模块的 EJBDeploy 工具
注: 以后,无法使用 Installation Manager 的修改、更新或回滚功能来添加或除去 core.feature。只能添加或除去子功能部件。
  • core.feature
    • thinclient
    • embeddablecontainer
    • ejbdeploy
Application Client for WebSphere Application Server

com.ibm.websphere.APPCLIENT.v90

  • samples:样本
  • standalonethinclient.resourceadapter.runtime:独立瘦客户机运行时
  • standalonethinclient.resourceadapter.samples:独立瘦客户机样本
  • embeddablecontainer:可嵌入 EJB 容器
embeddablecontainer
DMZ Secure Proxy Server for IBM WebSphere Application Server

com.ibm.websphere.NDDMZ.v90

  • core.feature: DMZ Secure Proxy Server for IBM WebSphere Application Server
    必须指定此功能部件才能指定以下可选子功能部件:
    • thinclient:独立瘦客户机和资源适配器
无缺省功能部件
Web 服务器插件

com.ibm.websphere.PLG.v90

无可选功能部件 不适用
WebSphere Customization Toolbox

com.ibm.websphere.WCT.v90

  • zpmt:Profile Management Tool(仅限于 z/OS)
  • zmmt:z/OS 迁移管理工具
  • pct:Web 服务器插件配置工具

缺省情况下,将安装所有可选功能部件

指定产品版本

offering_version 是要回滚到的特定产品版本,可以选择性地使用下划线将其附加到产品标识,例如 9.0.0.20160503_0200

  • 如果未指定 offering_version,那么安装将回滚到产品的先前安装版本并且将安装该版本的所有临时修订。
  • 如果指定了 offering_version,那么安装将回滚到产品的指定较早版本,但不会安装该版本的临时修订。
对存储库运行以下命令时,可以看到产品版本通过下划线附加到产品标识的末尾:
imcl listAvailablePackages -repositories source_repository

指示主题类型的图标 任务主题



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=tins_rollback_silent
文件名:tins_rollback_silent.html