WebSphere WebSphere Enterprise Service Bus V6.0.1 操作系统: AIX, HP-UX, Linux, Solaris, Windows

样本选项响应文件:install.txt

可以使用选项响应文件来以静默方式安装更新。

install.txt 文件有一个伪指令,它标识用于安装服务更新的备份文件。该文件中的注释描述如何设置字符串值。

“WebSphere 软件的更新安装程序”向导将读取选项文件以确定响应,但不会显示图形用户界面。以下命令将使用选项文件 myresponsefile.txt 的副本来进行静默安装:

./update -options "responsefiles/myresponsefile.txt" -silent

如果您不使用 -silent 选项,响应文件将为图形界面提供初始值。

要点: 在本主题中,为了简单起见,只以 Linux 和 UNIX 平台上的格式显示了某些目录路径。而相应的 Windows 路径除了斜杠方向不同之外,其余内容完全相同。

响应文件所在的位置

样本选项响应文件的名称为 install.txt。在将“WebSphere 软件的更新安装程序”解压缩到 WebSphere 软件产品的根目录中之后,该响应文件将位于 install_root/updateinstaller/responsefiles 目录中。

以静默方式安装

以静默方式安装时,选项文件将为“更新安装程序”向导提供值。该向导将读取选项文件以确定响应,但不会显示图形用户界面。以下命令将使用选项文件 myresponsefile.txt 的副本来进行静默安装:

update -options "myresponsefile.txt" -silent

响应文件用户输入验证

在静默安装中,响应文件验证被编写到安装中。如果未通过验证,则会将故障记录在 install_root/logs/update/tmp 目录的日志文件中。

要安装的维护包所在的位置
缺省伪指令设置
-W maintenance.package=""
有效设置
必须将此伪指令设置为 PAK 文件所在的位置。例如,在 Linux 系统上,可以指定以下位置:
install_root/updateinstaller/maintenance/PQ20029.pak
错误标识:
  • 系统上已经安装了维护包 maintenance_package_name
  • 所选产品不受支持。
  • 配置失败。失败的配置操作是:configuration_action
  • 在将当前维护安装到目标产品中之前安装下列必备 APAR:list_ of_ prerequisite_ maintenance_ packages_ to_ install
  • 在安装您当前正在尝试安装的软件包之前,安装下列必备维护包:list_ of_ prerequisite_ maintenance_ packages_ to_ install
  • 在将当前维护应用于目标产品之前,卸载下列 APAR:list_ of_ prerequisite_ maintenance_ packages_ to_ uninstall
  • 在将当前维护应用于目标产品之前,卸载下列维护包:list_ of_ prerequisite_ maintenance_ packages_ to_ uninstall
  • 找不到正确版本的 the_update_installer。正在查找版本 version_identifier
  • Maintenance_package 是无效的维护包。
替代产品位置

尽管可以将维护应用于另一个产品,但是始终要在正在更新的产品的目录结构中使用“更新安装程序”向导。除非绝对需要使用此伪指令,否则不要使用它。

缺省伪指令设置
-W product.location=""
有效设置
必须将此伪指令设置为替代产品的安装根目录。例如,在 Linux 系统上,可以指定以下位置:
/opt/IBM/WebSphere/ProcServer2
错误标识:
  • 系统上已经安装了维护包 maintenance_package_name
  • 所选产品不受支持。
  • 配置失败。失败的配置操作是:configuration_action
  • 在将当前维护安装到目标产品中之前安装下列必备 APAR:list_ of_ prerequisite_ maintenance_ packages_ to_ install
  • 在安装您当前正在尝试安装的软件包之前,安装下列必备维护包:list_ of_ prerequisite_ maintenance_ packages_ to_ install
  • 在将当前维护应用于目标产品之前,卸载下列 APAR:list_ of_ prerequisite_ maintenance_ packages_ to_ uninstall
  • 在将当前维护应用于目标产品之前,卸载下列维护包:list_ of_ prerequisite_ maintenance_ packages_ to_ uninstall
  • 找不到正确版本的 the_update_installer。正在查找版本 version_identifier
  • Maintenance_package 是无效的维护包。
  • 通过验证 Alternate_product_directory,发现它不是一个现有目录。

使用说明

install.txt 文件示例

编辑“WebSphere 软件的更新安装程序”压缩文件中包含的文件的版本。并不保证以下示例是实际文件的精确呈现。
################################################################################
#
# This is the silent install response file for installing maintenance packages
# using the update installer.
# 
# A common use of an options file is to run the wizard in silent mode. This lets
# the options file author specify wizard settings without having to run the
# wizard in graphical or console mode. To use this options file for silent mode
# execution, *uncomment* and modify the parameters defined within.
#
# Use the following command line when running the wizard from the update 
# installer directory:
# 
#    update -options responsefiles/install.txt -silent
#
################################################################################
################################################################################
#
# Used to input the maintenance package full filename specification to be installed. 
# Edit as appropriate.
#
# ie. -W maintenance.package="C:\Program Files\IBM\WebSphere\ProcServer\
#          updateinstaller\maintenance\PQ20029.pak"
#
# Note: If no package is specified, a default of the last downloaded maintenance 
# package will be used (based on timestamp).
#
#-W maintenance.package=
################################################################################
#
# Used to modify the product install location that will be updated. 
# This value should be left commented out if the Update Installer is 
# being run from the recommended location
#
# ie. -W product.location="C:\Program Files\IBM\WebSphere\ProcServer"
#
# Note: If no location is specified, the parent directory to update installer 
# will be used as default
#
#-W product.location=""
################################################################################
#
# Do not edit these values.
#
#
-W update.type="install"

参考主题

使用条款 | 评价此页

Timestamp icon上次更新时间: 3 Mar 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wesb.doc.nl1_6.0.1\doc\rins_rf_apply_service.html

(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
本信息中心基于 Eclipse 技术。(http://www.eclipse.org)