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

使用响应文件安装修订包

您可以通过 IBM® Installation Manager 响应文件,使用可用的修订包来更新产品。修订包中包含捆绑的服务,用于将产品升级到新的产品级别。

开始之前

提示: 作为此过程的替代方法,您可在响应文件或命令行中使用 Installation Manager 的 updateAll 命令来搜索并更新所有已安装的软件包。仅当您完全了解目标存储库中包含了哪些修订时才使用此命令。如果创建并指向的一组定制存储库仅包含要安装的特定修订,那么您可以放心地使用此命令。如果您启用服务存储库搜索,或者直接从其他基于 Web 的实时存储库安装修订,那么您可能不想选择此选项,以便能够只选择您想要安装的修订(在命令行上使用 install 命令的 -installFixes 选项进行选择,或在响应文件中使用 installFixes 属性进行选择)。

过程

  1. 选择是要从在线服务存储库进行安装,还是要从包含修订包安装文件的本地存储库进行安装。
    • 访问在线服务存储库。

      1. 确定产品的 URL。
        您可使用用于初始产品安装的 URL 从服务存储库进行安装。这些 URL 基于下列模式,其中 offering_ID 是您可以在用于受支持操作系统的 WebSphere Application Server 产品供应项目中找到的产品标识:
        http://www.ibm.com/software/repositorymanager/offering_ID

        这些 URL 无法在 Web 浏览器中装入,而只能由 Installation Manager 访问。

      2. 可选:创建主密码文件以保护凭证安全。

        主密码文件是一个包含口令(例如“此文本是主密码”)的文本文件。此文件用于保护认证凭证的安全。

        如果您创建主密码文件,并且在创建凭证时使用该文件,那么必须始终指定主密码文件。

        提示: 要保护此文件的安全,请根据您的操作系统相应设置许可权以限制对此文件的访问。
      3. 通过运行 imutilsc saveCredential 命令来创建包含 IBM 软件用户标识和密码的凭证存储文件。
        [Windows]
        imutilsc.exe saveCredential 
          -secureStorageFile storage_file
          -userName user_ID -userPassword user_password
          -url source_repository 
        [AIX][HP-UX][Linux][Solaris][IBM i]
        ./imutilsc saveCredential 
          -secureStorageFile storage_file
          -userName user_ID -userPassword user_password
          -url source_repository 
        提示: 创建存储文件时,如果 imutilsc 命令找不到指定的 URL,请在存储库 URL 位置的末尾追加 /repository.config

      有关存储认证凭证的更多信息,请参阅 IBM Installation Manager 文档中的存储凭证

    • 从 Fix Central 下载文件,并将其解压缩以创建本地存储库。

      每个压缩修订包文件都包含修订包的 Installation Manager 存储库,并且通常具有 .zip 扩展名。下载并解压缩修订包文件后,您可以将生成的存储库与 Installation Manager 配合使用,以使用该修订包来更新产品。
      1. 转至 Fix Central
      2. 选择 WebSphere 作为产品组。
      3. 选择 WebSphere Application Server 作为产品。
      4. 选择所安装的产品版本。
      5. 选择您的操作系统作为平台,然后单击继续
      6. 选择浏览以查找修订,然后单击继续
      7. 与修订类型下,选择修订包
      8. 单击每个修订下方的更多信息以查看有关修订的信息。
      9. 选择下载选项,然后单击继续
      10. 单击我同意以同意条款和条件。
      11. 单击立即下载
      12. 将二进制格式的压缩文件传输到要在其上进行安装的系统。
      13. 将压缩的存储库文件解压缩到系统上的目录。
  2. 创建响应文件以更新产品。

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

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

  3. 停止要更新的产品安装。
  4. 启动命令行。

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

  5. 验证您是否具有在所选目录中安装修订包需要的许可权。
  6. 切换到 Installation Manager 安装目录中的 eclipse/tools 目录。
  7. 验证产品存储库是否可用。

    listAvailablePackages 命令用于列出产品的一个或多个级别。

    [Windows]
    imcl.exe listAvailablePackages -repositories source_repository
    [AIX][HP-UX][Linux][Solaris][IBM i]
    ./imcl listAvailablePackages -repositories source_repository
  8. 运行 imcl 命令并在 input 参数中指定响应文件的位置。
    例如:
    • [Windows] 管理员或非管理员:
      imcl.exe -acceptLicense 
        input C:\temp\update_response_file.xml 
        -log C:\temp\update_log.xml 
        -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password.txt
    • [AIX][HP-UX][Linux][Solaris]管理员:
      ./imcl -acceptLicense 
        input /var/temp/update_response_file.xml 
        -log /var/temp/update_log.xml 
        -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password.txt
    • [AIX][HP-UX][Linux][Solaris]非管理员:
      ./imcl -acceptLicense 
        input user_home/var/temp/update_response_file.xml 
        -log user_home/var/temp/update_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/update_response_file.xml 
        -log $HOME/WASFiles/temp/update_log.xml
        -secureStorageFile $HOME/WASFiles/temp/credential.store -masterPasswordFile $HOME/WASFiles/temp/master_password.txt 

示例

以下示例显示用于在 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'/>
  <data key='user.import.profile' value='false'/>
  <data key='cic.selector.nl' value='en, fr, it, zh, ro, ru, zh_TW, de, ja, pl, es, cs, hu, ko, pt_BR'/>
</profile>
<install modify='false'>
  <offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.websphere.ND.v90' 
    version='9.0.0.20161025_2108' features='core.feature'/>
</install>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
<preference name='offering.service.repositories.areUsed' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
<preference name='http.ntlm.auth.kind' value='NTLM'/>
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
</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.x_0200)。

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

要指示您想要随产品一起安装哪些临时修订,请随 -installFixes 自变量一起指定 nonerecommendedall

  • 如果未指定产品版本,那么 -installFixes 选项缺省为 all
  • 如果指定了产品版本,那么 -installFixes 选项缺省为 none

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



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