generateupgrade 命令(没有 Servers.xml 文件)
generateupgrade 命令用于生成升级现有 Content Platform Engine 所需的配置 XML 文件。generateupgrade 命令有两种语法格式,取决于 Content Platform Engine 所安装在的目录中是否存在 Servers.xml 文件的有效副本。命令名不区分大小写。
generateupgrade 命令语法
如果在 Content Platform Engine 的安装目录 (ce_install_path) 中不存在包含有效服务器信息的现有 Servers.XML 文件,请使用以下 generateupgrade 命令语法。
configmgr_cl generateupgrade -appserver app_server_type -server server_name
-deploy deploy_type -profile myprofile [-silent]
[-force] [-help]
generateupgrade 命令参数
- -appserver appserver_type
- 仅当 ce_install_path/Servers.xml 文件不存在或者未包含任何服务器时,-appserver appserver_type 参数才是必需的。此参数指定应用程序服务器的类型,并且必须是下列其中一个值:WebSphere、WebLogic 或 JBoss。
- -server server_name
- -server server_name 参数指示要为其创建升级概要文件的服务器。在运行 generateupgrade 命令之前,请使用 listservers 命令来显示有效 server_name 值的列表。
- -deploy deploy_type
- 仅当 ce_install_path/Servers.xml
文件不存在或者未包含所选服务器的部署类型时,-deploy deploy_type 参数才是必需的。此参数指定 Content Platform Engine 部署类型。如果所选服务器的 Servers.xml
文件包含部署类型值,那么将使用 Servers.xml
文件中的值,而不是使用您在命令行中指定的值。
有效值是 standard、cluster 或 netdeploy(网络部署)。
如果您正在将 Content Platform Engine 部署到独立 WebSphere® Application Server、Oracle WebLogic Server 或 JBoss Application Server(即,不是受管服务器或者集群式服务器),请指定 standard。
如果您正在将 Content Platform Engine 部署到 WebSphere Application Server、Oracle WebLogic Server 或 JBoss Application Server 集群,请指定 cluster。
如果您正在将 Content Platform Engine 部署到受管 WebSphere Application Server 实例,请指定 netdeploy。即,您正在使用 Network Deployment 来管理各个未包含在集群中的服务器。
- -profile myprofile
- -profile myprofile 参数指定要使用的概要文件。myprofile 值可以是下列其中一项:
- 概要文件的名称,例如 ce_was_tiv_db2。此概要文件必须位于 ce_install_path/tools/configure/profiles 目录中,其中 ce_install_path 是 Content Platform Engine 软件的安装位置。
- 概要文件目录的绝对路径,例如 "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2" 或 /opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2。
- 概要文件输入文件的绝对路径,例如 "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfg" 或 /opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2/ce_was_tiv_db2.cfg。
切记: 如果此路径包含带有空格的目录名,请将整个路径括在引号中。例如,输入 "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfg"。 - -silent
- -silent 参数是可选的。如果指定了 -silent,那么将不会在控制台中显示任何提示或参考消息,但会将错误写入日志。故障消息和验证错误消息(例如关于遗漏密码或端口号无效的消息)将根据需要显示。如果您通过运行 execute 命令来运行概要文件中的所有任务,并且指定了 -silent 参数,那么还必须指定 -force 参数。
- -help
- -help 参数是可选的,它显示有关命令语法的简要消息,而不是运行该命令。
generateupgrade 命令示例
- 在 Servers.xml 文件不存在时生成升级配置文件。
- 以下命令根据现有 Content Platform Engine 集群部署对名为 ceserver1 的服务器生成升级配置 XML 文件,该部署使用缺省概要文件目录中的概要文件 UpgradeServer1:
configmgr_cl generateupgrade -deploy cluster -profile UpgradeServer1
- 显示 generateupgrade 命令的帮助。
- 以下命令显示 generateupgrade 命令的帮助:
configmgr_cl generateupgrade -help
生成 configurepricingmodel.xml 配置 XML 文件
configmgr_cl generateconfig -appserver app_server_type
-task configurepricingmodel -profile my_profile
app_server_type 是应用程序服务器类型,并且必须是 websphere、weblogic 或 jboss。
my_profile 是要使用的概要文件。