範例回應檔:修改 IBM WebSphere Application Server Liberty Core
您可以編輯和使用這個用來修改 IBM® WebSphere® Application Server Liberty Core 的回應檔範例。
<?xml version="1.0" encoding="UTF-8"?>
<!-- ##### 著作權 ######################################################
# Licensed Materials - Property of IBM (c) Copyright IBM Corp. 2013.
# All Rights Reserved. US Government Users Restricted Rights-Use, duplication
# or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
####################################################################### -->
<!-- ##### 常見問題 #####################################
# 線上「資訊中心」提供了關於使用 Installation
# Manager 的最新資訊。您可以在其中找到無聲
# 自動安裝回應檔中所用的指令和屬性的相關
# 資訊。
#
# 「Installation Manager 資訊中心」的位置如下:
# http://publib.boulder.ibm.com/infocenter/install/v1r6/index.jsp
#
# 問題 1. 如何利用 Installation Manager 來記錄回應檔?
# 回答 1. 請從指令行中,在 eclipse 子目錄之下,
# 利用 record 參數來啟動 Installation Manager,
# 它會產生一個含有它所執行的動作、它所用的儲存庫
# 以及它的喜好設定的回應檔。如果您不想將產品安裝
# 到機器上,您可以選擇使用 -skipInstall 參數。當執行
# 新的安裝時,請指定新的 agentDataLocation 位置值。安裝
# 時,請勿使用現有的 agentDataLocation,因為它可能
# 損壞安裝資料,使您無法修改、更新、回復或解除安裝
# 已安裝的套件。
#
# Windows:IBMIM -record <responseFile> -skipInstall <agentDataLocation>
# Linux 或 UNIX:./IBMIM -record <responseFile> -skipInstall <agentDataLocation>
#
# 例如:
# Windows = IBMIM.exe -record c:\temp\responsefiles\WASv85.install.Win32.xml
# -skipInstall c:\temp\skipInstall\WebSphere_Temp_Registry
# Linux 或 UNIX = ./IBMIM -record /home/user/responsefiles/WASv85.install.RHEL64.xml
# -skipInstall c:\temp\skipInstall\WebSphere_Temp_Registry
#
# 問題 2. 如何利用回應檔來無聲自動執行 Installation Manager?
# 回答 2. 建立一個無聲自動安裝回應檔,然後從
# Installation Manager 安裝目錄中的
# eclipse\tools 子目錄來執行下列指令:
#
# Windows = imcl.exe -acceptLicense -showProgress
# input <response_file_path_and_name> -log <log_file_path_and_name>
# Linux、UNIX、IBM i 和 z/OS = ./imcl -acceptLicense -showProgress
# input <response_file_path_and_name> -log <log_file_path_and_name>
#
# 例如:
# Windows = imcl.exe -acceptLicense -showProgress
# input c:\temp\responsefile\WASv85.install.Win32.xml
# Linux、UNIX、IBM i 和 z/OS = ./imcl -acceptLicense -showProgress
# input /home/user/responsefile/WASv85.install.RHEL64.xml
#
# 必須包含 -acceptLicense 指令,指示接受正在安裝、
# 更新或修改的所有供應項目的所有授權合約。
# 當執行無聲自動模式時,-showProgress 指令會顯示進度。
# 要求說明可以顯示其他指令:IBMIM -help
#
# 問題 3. 如何儲存認證並將認證傳遞給要求鑑別
# 的儲存庫?
# 回答 3. 依所用的版本而定,Installation
# Manager 的鑑別認證有兩種儲存方法:
# 金鑰環檔或儲存檔。
#
# Installation Manager 在 1.6.2 版之前的版本利用金鑰環檔
# 來儲存用於儲存庫鑑別的加密認證。請遵循這個兩步驟
# 的程序來建立金鑰環檔及利用它來搭配 Installation Manager。
#
# 首先,請從指令行中,在 eclipse 子目錄之下,利用
# keyring 參數來啟動 Installation Manager,以建立
# 含有您的認證的金鑰環檔。
# 請利用選用的 password 參數,以密碼來保護您的檔案。
#
# Windows = IBMIM.exe -keyring <path and file name> -password <password>
# Linux、UNIX、IBM i 和 z/OS = ./IBMIM -keyring <path and file name>
# -password <password>
#
# Installation Manager 會啟動圖形模式。請確認
# 您需要進行鑑別的儲存庫已包含在
# 「檔案/喜好設定/儲存庫」喜好設定中。如果未列出它們,
# 請按一下「新增儲存庫」來新增 URL 或 UNC 路徑。
# Installation Manager 會提示您提供認證。如果
# 儲存庫已在清單中,只要試圖存取儲存庫位置,
# 例如按一下「測試連線」按鈕,都會提示您提供
# 認證。請輸入正確的認證,然後勾選「儲存密碼」
# 勾選框。認證會儲存在您指定的金鑰環檔中。
#
# 其次,當您啟動無聲自動安裝時,請在 eclipse/tools 子目錄
# 之下執行 imcl,向 Installation Manager 提供金鑰環檔
# 的位置,如果檔案受到保護,也請提供密碼。例如:
#
# Windows = imcl.exe -acceptLicense -showProgress
# input <path and file name of response file>
# -keyring <path and name of key ring file> -password <password>
# Linux、UNIX、IBM i 和 z/OS = ./imcl -acceptLicense -showProgress
# input <path and file name of response file>
# -keyring <path and name of key ring file> -password <password>
#
# 1.6.2 版或版本更新的 Installation Manager 是利用儲存檔
# 來儲存加密認證。請完成下列步驟來建立搭配 Installation Manager
# 使用的主要密碼檔和儲存檔。
#
# 首先,如果您還沒有主要密碼檔,請建立一個含有
# 主要通行詞組的文字檔。通行詞組的範例如下:
# "這個文字是主要密碼檔的通行詞組。"
#
# 其次,在 eclipse/tools 子目錄之下,設定下列選項來執行 imutilsc,
# 以建立使用者認證,並將使用者認證儲存在儲存檔中。
# -secureStorageFile <path and file name of storage file>
# -masterPasswordFile <path and file name of master password file>
# -url <repository address> or -passportAdvantage <PPA repository address>
# -userName <user name>
# -userPassword <password for user>
#
# 在各作業系統中建立儲存檔的指令範例
# Windows = imutilsc saveCredential -url http://myServer -userName myUserName
# -userPassword myPassword -secureStorageFile C:\IBM\credential.store
# -masterPasswordFile C:\IBM\master_password_file.txt
# Linux、UNIX、IBM z/OS 和 OS X 作業系統 =
# ./imutilsc saveCredential -url http://myServer -userName myUserName
# -userPassword myPassword -secureStorageFile /home/IBM/credential.store
# -masterPasswordFile /home/user/IBM/master_password_file.txt
#
# 用法提示:
# * 請勿在相同指令中,同時使用 -url 和 -passportAdvantage 這兩個選項。
# * 請用雙引號括住包含空格的檔案路徑。
# * 如果使用 IBM 服務儲存庫,您可以在 -url 選項中指定下列值:
# http://www.ibm.com/software/repositorymanager/entitled/repository.xml
# 這是適用於各 IBM 套件的一般服務儲存庫。
# * 請重複各步驟,將多位使用者的認證儲存在單一檔案中。
# * 請重複各步驟,將多個儲存庫的認證儲存在單一檔案中。
#
# 之後,當您啟動無聲自動安裝時,請在 eclipse/tools 子目錄
# 之下執行 imcl,向 Installation Manager 提供儲存檔
# 的位置。例如:
#
# Windows = imcl.exe -acceptLicense -showProgress
# input <path and file name of response file>
# -secureStorageFile <path and name of storage file>
# -masterPasswordFile <path and name of master password file>
# Linux、UNIX、IBM i 和 z/OS = ./imcl -acceptLicense -showProgress
# input <path and file name of response file>
# -secureStorageFile <path and name of storage file>
# -masterPasswordFile <path and name of master password file>
#
####################################################################### -->
<!-- ##### 代理程式輸入 ##############################################
#
# clean 和 temporary 屬性指定 Installation Manager
# 所用的儲存庫及其他喜好設定,以及在安裝完成之後,
# 是否應持續保存這些設定。
#
# clean 的有效值如下:
# true = 只使用回應檔中所指定的儲存庫
# 和其他喜好設定。
# false = 使用回應檔和 Installation Manager 中所指定的儲存庫
# 和其他喜好設定。
#
# temporary 的有效值如下:
# true = 在 Installation Manager 中,不持續保存
# 回應檔中所指定的儲存庫和其他喜好設定。
# false = 在 Installation Manager 中,持續保存
# 回應檔中所指定的儲存庫和其他喜好設定。
#
####################################################################### -->
<agent-input clean="true" temporary="true">
<!-- ##### 儲存庫 ###################################################
# 儲存庫是 Installation Manager 為了尋找可安裝的套件
# 而查詢的位置。儲存庫可能在本端(在 Installation Manager
# 所在的機器上),也可能在遠端(在公司內部網路,或代管於
# 網際網路的某處)。
#
# 如果使用這個回應檔的機器可以存取網際網路,
# 請將 IBM WebSphere Live Update 儲存庫
# 併到儲存庫位置清單中。
#
# 如果使用這個回應檔的機器無法存取網際網路,
# 請註銷 IBM WebSphere Live Update 儲存庫,
# 然後指定自訂內部網路儲存庫的 URL 或 UNC 路徑,以及
# 要用的本端儲存庫的目錄路徑。
#
####################################################################### -->
<server>
<!-- ##### IBM WebSphere Live Update 儲存庫 ####################
# 這些儲存庫包含 WebSphere Application Server Liberty 供應項目,
# 以及這些供應項目的各項更新
#
# 如果要使用安全儲存庫 (https),您必須具備 IBM ID,
# 您可以在 http://www.ibm.com/account 註冊,或透過您的
# Passport Advantage 帳戶來取得 IBM ID。
#
# 另外,您也必須搭配回應檔來使用金鑰環檔。
################################################################## -->
<repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85"/>
<!-- <repository location="https://www.ibm.com/software/rational/repositorymanager/repositories/websphere" /> -->
<!-- ##### 自訂儲存庫 #######################################
# 請將下列儲存庫位置索引鍵解除註解,並加以更新,
# 以指定任何內部網路儲存庫的 URL 或 UNC 路徑,以及
# 要用的本端儲存庫的目錄路徑。
################################################################## -->
<!-- <repository location='https:\\w3.mycompany.com\repositories\'/> -->
<!-- <repository location='/home/user/repositories/websphere/'/> -->
<!-- ##### 本端儲存庫 ########################################
# 當利用您自己機器上的本端儲存庫來安裝
# WebSphere Application Server Liberty 供應項目時,
# 請將下面這一行解除註解,並加以更新。
############################################################# -->
<!-- <repository location='insert the full directory path inside single quotes'/> -->
</server>
<!-- ##### 修改套件 ###############################################
#
# install 和 uninstall 指令
#
# 請利用 install 和 uninstall 指令來通知 Installation Manager
# 要安裝或解除安裝的安裝套件。
#
# modify 屬性是選用的,可以搭配 install 指令
# 來新增特性,或搭配 uninstall 指令來移除 # 特性。如果省略,預設值設為 false。
# false = 指示不新增或移除特性來修改
# 現有的安裝。
# true = 指示新增或移除特性來修改
# 現有的安裝。
#
# offering id 屬性是必要的,因為它指定要安裝的
# 供應項目。列出的供應項目至少必須存在於先前
# 列出的其中一個儲存庫之中。下列指令範例
# 包含 WebSphere Application Server Liberty
# Core 版本的供應項目 ID。
#
# version 屬性是選用的。如果提供了版本號碼,
# 只要在儲存庫中可供使用,就會在指定的版本層次
# 安裝或解除安裝供應項目。如果未提供 version
# 屬性,預設行為是安裝或解除安裝儲存庫
# 所提供的最新版本。版本號碼可以在
# 儲存庫的 repository.xml 檔中找到。
# 例如,<offering ... version='8.5.5000.20130328_1111'>。
#
# profile 屬性是必要的,通常專屬於
# 供應項目。如果修改或更新現有的安裝,
# profile 屬性必須符合 WebSphere Application
# Server Liberty 目標安裝的設定檔 ID。
#
# features 屬性是選用的。供應項目一律至少有
# 一項特性;這是一項不論是否明確指定,都會
# 安裝的必要核心特性。如果提供了其他特性名稱,
# 只會安裝這些特性。
# 各特性必須以逗點定界,不含空格。
#
# WebSphere Application Server Liberty 的 feature 值包括:
# liberty,embeddablecontainer
#
# embeddablecontainer 特性是 Liberty 的子特性。
#
# 您稍後可使用這些功能來新增或移除 embeddablecontainer
# 特性。
#
# 在下面的範例中,新增 embeddablecontainer 特性,
# 且未從指定的供應項目移除任何特性。
#
# installFixes 屬性指出是否隨產品一起安裝
# 儲存庫中可用的修正程式。依預設,會隨
# 供應項目一起安裝所有可用的修正程式。
#
# installFixes 的有效值如下:
# none = 不隨供應項目一起安裝可用的修正程式。
# recommended = 隨供應項目一起安裝所有可用的建議修正程式。
# all = 隨供應項目一起安裝所有可用的修正程式。
#
# Installation Manager 支援同時修改多個供應項目。
# 在 install 和 uninstall 指令中,也可以包含其他供應項目,
# 每個供應項目都必須有它自己的 offering id、
# version、profile 值及 feature 值。
#
# profile 指令
#
# install 指令所列出的每個供應項目都必須
# 包含個別的 profile 指令。profile 指令會通知
# Installation Manager 有關供應項目的特定內容或配置值。
#
# installLocation 指定供應項目的安裝位置。
# 如果利用回應檔來修改或更新現有的
# 安裝,請確定 installLocation 指向供應項目
# 先前的安裝位置。
#
# eclipseLocation 資料索引鍵應該利用與 installationLocation 屬性相同的
# WebSphere Application Server Liberty 目錄路徑。
#
# 請併入產品特定設定檔內容的資料索引鍵。
# 例如,將 WebSphere Application Server Liberty 供應項目安裝在 64 位元
# 系統上,必須包括 IBM Software Development Kit 的選項之一,
# 您可以利用資料索引鍵 cic.selector.arch 來指定這個選項,它的值可以
# 是 x86(32 位元)或 x86_64(64 位元)。
#
# 您可以在下列鏈結找到更多 cic.selector.arch 的詳細資料:
#
# https://infocenters.hursley.ibm.com/was/vNext/draft/help/index.jsp?topic=%2Fcom.ibm.websphere.wlp.core.doc%2Fae%2Ftwlp_ins_installation_dist_silent.html
#
####################################################################### -->
<install modify="true">
<offering id="com.ibm.websphere.liberty.v85" profile="WebSphere Liberty V8.5" features="embeddablecontainer" />
</install>
<profile id="WebSphere Liberty V8.5" installLocation="C:\Program Files\IBM\WebSphere\Liberty">
<data key="eclipseLocation" value="C:\Program Files\IBM\WebSphere\Liberty" />
<data key="cic.selector.arch" value="x86_64" />
</profile>
<!-- ##### 共用資料位置 ###########################################
# 第一次利用 Installation Manager 來執行安裝時,
# 請解除註解 eclipseCache 的喜好設定來設定共用
# 資料位置。
#
# Eclipse 快取位置可以從 installed.xml 檔取得,檔案位置如下:
# Linux/Unix:/var/ibm/InstallationManager
# Windows:C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager
# 來源內容如下:
# <property name='cacheLocation' value='C:\Program Files\IBM\IMShared'/>
#
# 請在文字編輯器中開啟 installed.xml 檔,因為如果
# 在 Web 瀏覽器中開啟,樣式表可能會隱藏這個值。
# 如需如何編輯喜好設定的進一步相關資訊,請參閱公用書庫,網址如下:
# http://publib.boulder.ibm.com/infocenter/install/v1r5/index.jsp?topic=/com.ibm.silentinstall12.doc/topics/r_silent_prefs.html
#
# 設定共用資料位置之後,就無法再利用
# 回應檔或圖形精靈來變更。
#
# 請確定共用資料位置是所有預期會使用 Installation
# Manager 的使用者帳戶都可以寫入的位置。
#
# 依預設,Installation Manager 會將下載的構件
# 儲存在共用資料位置中。這有兩個用途。
#
# 首先,如果在機器中重複安裝相同產品,
# 就會使用共用資料位置中的檔案,而不會
# 重新下載檔案。
#
# 第二,在回復程序期間,會使用儲存的構件。
# 否則,如果沒有儲存構件,或構件已遭移除,
# Installation Manager 必須存取安裝舊版時
# 所用的儲存庫。
#
# preserveDownloadedArtifacts 的有效值如下:
# true = 將下載的構件儲存在共用資料位置中
# false = 從共用資料位置移除下載的構件
#
####################################################################### -->
<!--
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
-->
<!-- ##### 喜好設定 ###########################################
# 可以指定 Installation Manager 的其他喜好設定。
# 這些喜好設定對應於「檔案/喜好設定」之下,
# 在圖形介面中的喜好設定。
#
# 如果回應檔忽略或註銷 preference 指令,
# Installation Manager 會使用先前設定的
# preference 值或 preference 的預設值。
#
# 在新版的 Installation Manager 中,可能有新增或淘汰的
# 喜好設定。請參閱線上「Installation Manager 資訊中心」,
# 以瞭解最新的一組喜好設定,並取得如何使用這些喜好設定的
# 說明。
#
# http://publib.boulder.ibm.com/infocenter/install/v1r6/index.jsp
#
####################################################################### -->
<!--
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='45'/>
<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.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
<preference name='com.ibm.cic.agent.ui.displayInternalVersion' value='false'/>
-->
</agent-input>