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

以静默方式创建定制概要文件

responsefile.pcaw.esb.managedProfile.txt 文件是用于创建定制概要文件的样本响应文件。使用 addNode 命令将定制节点联合到部署管理器单元中以使该节点成为可操作节点。因为概要文件与成为受管节点有很强的依赖关系,所以概要文件通常又被称为受管节点

在 Linux® 或 UNIX® 平台上以 root 用户的身份登录,或在 Windows® 平台上以隶属于 Administrator 组用户的身份登录之后,使用选项响应文件来创建定制节点。在 Windows 平台上进行安装的某些步骤要求隶属于 Administrator 组的用户具有高级用户权限以操作系统方式操作作为服务登录

以静默方式安装时,安装程序将读取此文件以确定部署管理器概要文件的特征。还可在初始安装后使用此响应文件来创建其他部署管理器概要文件。响应文件中提供了缺省值。

联合定制概要文件

文件中的某些伪指令提供了有关将定制 节点联合至部署管理器单元的方式的选项。
  • -W pctfederationpanelInstallWizardBean.federateLater

    在以下对联合的描述中,如果部署管理器因为任何原因未运行或不可访问,请将此值设置为 true

  • -W pctfederationpanelInstallWizardBean.hostname

    指定解析为运行部署管理器的系统的值。有关主机命名的更多信息,请参阅概要文件、节点、主机和单元的命名注意事项

  • -W pctfederationpanelInstallWizardBean.port

    指定部署管理器 SOAP 端口的值。必须指定正确的值。错误的值将导致节点联合无法进行并且导致彻底失败(出现 INSTCONFFAILED 指示符)。部署管理器的缺省 SOAP 端口为 8879。

是在创建概要文件期间还是之后联合节点?

当且仅当满足下列所有条件时,才在执行定制概要文件的静默创建时联合节点:
  • 部署管理器正在运行。
  • 部署管理器为 WebSphere ESB 概要文件。
  • 在部署管理器节点上未启用安全性。
  • 部署管理器使用缺省 SOAP JMX 连接器类型并且启用了连接器。
如果满足下列任一条件,请不要在概要文件静默创建期间联合节点:
  • 部署管理器未运行或者您不确定它是否在运行。
  • 部署管理器是一个尚未被扩充为 WebSphere ESB 概要文件的 WebSphere Application Server Network Deployment 概要文件。
  • 在部署管理器节点上启用了安全性。
  • 禁用了 SOAP 连接器。
  • 已将部署管理器重新配置为使用非缺省远程方法调用(RMI)作为首选的“Java™ 管理扩展”(JMX)连接器。(在部署管理器的管理控制台中选择系统管理 > 部署管理器 > 管理服务,以验证首选连接器类型。)
如果满足上述任一条件,则必须在通过使用 addNode 命令以在命令上输入用户标识和密码来创建节点之后联合该节点。

如果尝试在部署管理器因其他原因而未运行或者不可用时联合定制节点,则创建概要文件将失败并且获得的定制概要文件将不可用。因此,在创建另一个具有相同概要文件名称的定制概要文件之前,必须将此定制概要文件目录移至概要文件存储库外部(缺省情况下,profiles 目录在 install_root 目录中,其中 install_rootWebSphere ESB 的安装目录)。

避免在选项响应文件中使用 -silent 选项

如果文件中存在 -silent 选项,则会发生问题。在直接调用“创建概要文件”向导期间,在文件中可以使用该选项,但是在静默安装产品时调用它就会失败。有关在静默安装产品期间以静默方式创建概要文件的信息,请参阅定制选项响应文件

该选项不是必需的。应避免使用该选项以避免发生问题。

响应文件位置

示例选项响应文件保存在两个位置。

示例文件:
  • responsefile.pcaw.esb.dmgrProfile.txt
  • responsefile.pcaw.esb.managedProfile.txt
  • responsefile.pcaw.esb.standAloneProfile.txt

位置:

表 1. 选项响应文件位置
产品光盘位置 安装位置
/ESB 目录 install_root/bin/ProfileCreator 目录

使用产品光盘上的文件以静默方式安装 WebSphere ESB 并创建概要文件。

在安装 WebSphere ESB 之后,在“创建概要文件”向导命令上就可以将已安装的响应文件与 -options 参数配合使用。

需要的磁盘空间

概要文件 需要的磁盘空间 需要的临时空间
部署管理器概要文件 30 MB 40 MB
定制概要文件 10 MB 40 MB
应用程序服务器概要文件 200 MB 40 MB

在安装产品期间创建一个运营环境

安装 WebSphere ESB 包括两个步骤:
  1. 安装核心产品文件和功能部件文件。
  2. 创建部署管理器概要文件、定制概要文件或应用程序服务器概要文件。

以下样本选项响应文件:responsefile.esb.txt,用于控制安 装的第一部分,并用于启动安装的第二部分。要将创建概要文件作为安装核心产品文件这一任务的一部分,在标识用于创建概要文件的响应文件的 responsefile.esb.txt 文件中使用选项。概要文件响应文件允许您以静默方式使用“创建概要文件”向导。

要编辑和使用适当的响应文件来创建概要文件,请执行以下步骤:
  1. 将适当的文件从产品光盘上的 ESB 目录复制到机器上您可以很容易识别的位置。示例文件包括:
    要创建的对象: 复制以下响应文件:
    部署管理器概要文件 responsefile.pcaw.esb.dmgrProfile.txt
    定制概要文件 responsefile.pcaw.esb.managedProfile.txt
    应用程序服务器概要文件 responsefile.pcaw.esb.standAloneProfile.txt
  2. 编辑该文件以定制用于安装的值。
  3. 验证“创建概要文件”向导的响应文件中是否不存在 -silent 选项。如果存在该选项,则不会创建概要文件。
  4. 保存该文件。
  5. 编辑 responsefile.esb.txt 文件以标识概要文件响应文件的位置和名称。更改 -W pcawresponsefilelocationqueryactionInstallWizardBean.fileLocation 选项的值以标识该文件。例如:
    -W pcawresponsefilelocationqueryactionInstallWizardBean.fileLocation=
    "/opt/IBM/WebSphere/MyOptionFiles/customProfile.txt"
  6. 开始安装。例如:
    install -options "myresponsefile.txt" -silent
  7. 安装之后,检查日志以了解安装是否成功。

在安装之后创建概要文件

安装 WebSphere ESB 产品包括两个步骤:
  1. 安装核心产品文件和功能部件文件
  2. 创建部署管理器概要文件、定制概要文件或独立服务器概要文件

如果核心产品文件已存在,则随时都可以使用“创建概要文件”向导来创建概要文件。可以从“第一步”控制台中启动该向导,也可以直接使用“创建概要文件”向导命令来启动它。

还可以使用概要文件的下列其中一个样本选项响应文件来以静默方式使用“创建概要文件”向导静默创建概要文件。要编辑和使用适当的响应文件来创建概要文件,请执行以下步骤:
  1. 将适当的文件从 install_root/bin/ProfileCreator 目录复制到机器上您可以很容易识别的位置。示例文件包括:
    要为其创建概要文件的对象: 复制以下响应文件:
    部署管理器 responsefile.pcaw.esb.dmgrProfile.txt
    受管节点 responsefile.pcaw.esb.managedProfile.txt
    独立应用程序服务器 responsefile.pcaw.esb.standAloneProfile.txt

    例如,将文件复制为 my_options_file.txt 文件

  2. 编辑该文件以定制用于安装的值。
  3. 保存该文件。
  4. 开始安装。
    例如:
    • For AIX platforms ./pcatAIX.bin -options my_options_file.txt -silent
    • ./pcatHPUX.bin -options my_options_file.txt -silent
    • LINUX platforms ./pcatLinux.bin -options my_options_file.txt -silent
    • LINUX platforms Power 平台:./pcatLinuxPPC.bin -options my_options_file.txt -silent
    • Solaris platforms ./pcatSolaris.bin -options my_options_file.txt -silent
    • For Windows platforms pcatWindows.exe -options my_options_file.txt -silent
  5. 在使用“创建概要文件”向导之后,检查日志以了解安装是否成功。

日志记录

下列日志文件记录了与创建概要文件有关的信息:
  • install_root/logs/log.txt 文件记录了安装状态。
  • install_rootprofiles/profile_name/logs/pctLog.txt 文件记录了在使用“创建概要文件”向导创建概要文件时发生的安装事件。
  • install_root/logs/wasprofile/wasprofile_create_profile_name.log 文件记录了创建概要文件时发生的安装事件。
  • install_root/logs/wasprofile/wasprofile_delete_profile_name.log 文件记录了删除概要文件时发生的安装事件。

命名注意事项

有关命名注意事项的信息,请参阅概要文件、节点、主机和单元的命名注意事项

responsefile.pcaw.esb.managedProfile.txt 示例文件

提示: 必须将定制概要文件添加到部署管理器单元中以使其成为可操作的文件。因为概要文件与成为受管节点有很强的依赖关系,所以概要文件通常又被称为受管概要文件或受管节点。

当然,直到将节点联合到单元中,节点才会成为受管节点。还有一点要记住的是,任何已联合节点都是受管节点,包括 Application Server 概要文件中的已联合节点。

在许多伪指令名称中,以下响应文件指的是术语受管而不是术语定制。虽然如此,此响应文件中的所有伪指令还是有助于定义定制概要文件。


################################################################################
#
# Response file for WebSphere ESB custom profile creation
#
# This options file is located in the CD_ROOT\ESB\ directory and in the 
# install_root\bin\ProfileCreator_wbi directory. 
#
# To use the options file under CD_ROOT\ESB\ directory, follow the instructions 
# in CD_ROOT\ESB\responsefile.esb.txt. The WebSphere ESB
# installer locates this file during silent installation
# and automatically runs the silent profile creation at the end of installation.
# 
# To use the options file under install_root\bin\ProfileCreator_wbi for silent profile
# creation, you must change various values in the file and use the following command 
# line arguments:
# 
#    -options "responsefile.pcaw.esb.managedProfile.txt" -silent
#
################################################################################


################################################################################
# 
# Profile name
#
# Set the name for this custom profile. The profile name must be unique for this 
# WebSphere ESB installation. 
#
#
-W profilenamepanelInstallWizardBean.profileName="profileManaged"

################################################################################
# If you want to set this profile to be your default profile, set to "true".
# Otherwise set to "false". If this is the first profile being created, the profile  
# automatically is the default. 
#
-W profilenamepanelInstallWizardBean.isDefault="false"


################################################################################
# 
# Profile location
#
# Specify a directory to contain the files that define the run-time environment, 
# such as commands,configuration files, and log files. If the specified directory 
# already exists it must be empty. If the directory name contains 
# spaces, enclose it in double-quotes as shown in the Windows example below. 
#
# Note that spaces in the install location is only supported on Windows
# operating systems.
#
# Default Install Location:
#
#    -P installLocation="<ESB_HOME>\profiles\<PROFILE_NAME>"
#
-P installLocation="C:\Program Files\IBM\WebSphere\ESB\profiles\profileManaged"


################################################################################
# 
# Node name
#
# Please select the node name for the Application Server. Node name under one cell 
# has to be unique. 
#
# Replace YOUR_NODE_NAME with the actual node name.
#
-W nodehostnamepanelInstallWizardBean.nodeName="YOUR_NODE_NAME"


################################################################################
#
# Host name
#
# Specify the host name for the Application Server. The host name is the domain 
# name system (DNS) name (short or long) or the IP address of this computer.
# 
# Replace YOUR_HOST_NAME with the actual host name. Comment the line to use 
# the default value.
# 
-W nodehostnamepanelInstallWizardBean.hostName="YOUR_HOST_NAME"


################################################################################
#
# Cell name
#
# You should not Modify this, unless absolutely necessary
# 
# The Wizard would set this to short local host name + "Node##Cell" by default.
#
# If you would like to override the resolved cell name value, uncomment the line and
# replace YOUR_CELL_NAME with <YOUR_OWN_VALUE>
#
# -W setnondmgrcellnameinglobalconstantsInstallWizardBean.value="YOUR_CELL_NAME"


################################################################################
# 
# Ports value assignment
#
# The following entries are used to reset port numbers used in the configuration
#
# They are currently set to the defaults.
# Please check to make sure there are no port conflicts.
# Port nubmers for each profile can be find in: 
# <profile>/config/cells/<cell name>/nodes/<node name>/serverindex.xml
#
# If you specify true for the value of 
# the -W pctfederationpanelInstallWizardBean.federateLater  
# directive, port numbers are assigned automatically when you federate the 
# node with the addNode command. The following port numbers do not apply.
#
-W pctmanagedprofileportspanelInstallWizardBean.BOOTSTRAP_ADDRESS="2809"
-W pctmanagedprofileportspanelInstallWizardBean.SOAP_CONNECTOR_ADDRESS="8878"
-W pctmanagedprofileportspanelInstallWizardBean.SAS_SSL_SERVERAUTH_LISTENER_ADDRESS="9901"
-W pctmanagedprofileportspanelInstallWizardBean.CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS="9201"
-W pctmanagedprofileportspanelInstallWizardBean.CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS="9202"
-W pctmanagedprofileportspanelInstallWizardBean.ORB_LISTENER_ADDRESS="9100"
-W pctmanagedprofileportspanelInstallWizardBean.NODE_DISCOVERY_ADDRESS="7272"
-W pctmanagedprofileportspanelInstallWizardBean.NODE_MULTICAST_DISCOVERY_ADDRESS="5000"
-W pctmanagedprofileportspanelInstallWizardBean.NODE_IPV6_MULTICAST_DISCOVERY_ADDRESS="5001"
-W pctmanagedprofileportspanelInstallWizardBean.DCS_UNICAST_ADDRESS="9353"


################################################################################
# 
# Federation
#
# A custom profile contains an empty node that must be federated to a deployment 
# manager to become a functional managed node. Identify a running deployment
# manager that will administer the node or choose to federate the node later 
# using the addNode command.
#
# Set to "true" if you want to federate this custom node later using the addNode 
# command. You must federate this node later if the deployment manager :
#            - is not running. 
#            - has security enabled. 
#            - has the SOAP connector disabled
#
# If you want to federate it now, set to "" and fill in the entries for the host  
# and port of the deployment manager. 
#
-W pctfederationpanelInstallWizardBean.federateLater=""

################################################################################
# Specify the host name of the deployment manager for federation.
#
-W pctfederationpanelInstallWizardBean.hostname="YOUR_DEPLOYMENT_MANAGER_HOST_NAME"

################################################################################
# Specify the port number where the deployment manager (DMGR) is reachable on the 
# above host. The default port value is "8879".
#
-W pctfederationpanelInstallWizardBean.port="YOUR_DEPLOYMENT_MANAGER_PORT_NUMBER"





################################################################################
# 
# Profile type
#
# Must be set to "managed" for installing a custom profile. Do not change this!
# 
-W profiletypepanelInstallWizardBean.selection="managed"

相关任务
定制选项响应文件

参考主题

使用条款 | 评价此页

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\tasks\twesb_silent_cust.html

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