可以使用选项响应文件来以静默方式安装更新。
install.txt 文件有一个伪指令,它标识用于安装服务更新的备份文件。该文件中的注释描述如何设置字符串值。
“WebSphere 软件的更新安装程序”向导将读取选项文件以确定响应,但不会显示图形用户界面。以下命令将使用选项文件 myresponsefile.txt 的副本来进行静默安装:
./update -options "responsefiles/myresponsefile.txt" -silent
如果您不使用 -silent 选项,响应文件将为图形界面提供初始值。
样本选项响应文件的名称为 install.txt。在将“WebSphere 软件的更新安装程序”解压缩到 WebSphere 软件产品的根目录中之后,该响应文件将位于 install_root/updateinstaller/responsefiles 目录中。
以静默方式安装时,选项文件将为“更新安装程序”向导提供值。该向导将读取选项文件以确定响应,但不会显示图形用户界面。以下命令将使用选项文件 myresponsefile.txt 的副本来进行静默安装:
update -options "myresponsefile.txt" -silent
在静默安装中,响应文件验证被编写到安装中。如果未通过验证,则会将故障记录在 install_root/logs/update/tmp 目录的日志文件中。
install_root/updateinstaller/maintenance/PQ20029.pak
尽管可以将维护应用于另一个产品,但是始终要在正在更新的产品的目录结构中使用“更新安装程序”向导。除非绝对需要使用此伪指令,否则不要使用它。
/opt/IBM/WebSphere/ProcServer2
################################################################################ # # 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"