您可以从命令行以每次生成一个文件的方式生成 Content Platform Engine 所需的每个配置 XML 文件。
关于此任务
必须为下列每个必需的配置任务生成配置 XML 文件:
- 通过使用 configurebootstrap 选项,创建引导程序属性文件的 XML 文件。
- 使用 configurepricingmodel 选项来创建用于许可的 XML 文件。
- 使用 configurejdbcgcd 选项来创建 XML 文件,该文件用于为全局配置数据库 (GCD) 数据库配置 JDBC 数据源。
- 使用 configurejdbcos 选项来创建 XML 文件,该文件用于为单一对象存储数据库配置 JDBC 数据源。
- 使用 configureldap 选项来创建 XML 文件,该文件用于配置 LDAP 提供程序。
过程
要生成单一配置 XML 文件,请执行下列操作:
- 以 config_mgr_user(即,将运行 Configuration Manager 的用户)身份登录到应用程序服务器。
- 将当前目录切换到 ce_install_path/tools/configure。
- 运行您需要完成的任务的相应命令。在输入命令时,请不要换行。
- 为 configurebootstrap
任务生成 configurebootstrap.xml 文件:
configmgr_cl generateconfig -appserver app_server_type
-task configurebootstrap -bootstrap bootstrap_operation
-profile myprofile
- 针对许可证创建用于 configurepricingmodel 任务的 configurepricingmodel.xml 文件:
configmgr_cl generateconfig -appserver app_server_type
-task configurepricingmodel -profile myprofile
- 为用于配置 GCD 数据源的 configurejdbcgcd 任务生成 configurejdbcgcd.xml 文件:
configmgr_cl generateconfig -appserver app_server_type
-db db_type -task configurejdbcgcd -profile myprofile
- 为用于配置单一对象存储的数据源的 configurejdbcos 任务生成 configurejdbcos.n.xml 文件:
configmgr_cl generateconfig -appserver app_server_type
-db db_type -task configurejdbcos -profile myprofile
- 如果要将 FileNet® P8 从 5.2.0
之前的版本进行升级,请为用于 Process Engine 的数据源的
configurejdbcgos 任务生成 configurejdbcos.n.xml
文件:
configmgr_cl generateconfig -appserver app_server_type
-db db_type -task configurejdbcos -profile myprofile
- 为 configureldap 任务生成 configureldap.xml 文件:
configmgr_cl generateconfig -appserver app_server_type
-ldap ldap_type -task configureldap -profile myprofile
其中:
- -appserver appserver_name
- -appserver appserver_type
指定应用程序服务器的类型,并且必须为 WebLogic。
- -db database_type
- 只有在使用 configurejdbcgcd 或 configurejdbcos
选项来生成文件时,-db database_type 参数才是必需的。此参数指定 Content Platform Engine 要使用的数据库的类型,并且必须是 mssql、oracle、oracle_rac、db2、db2zos 或 db2pshadr。
- -ldap ldap_type
- 只有在同时生成所有文件或者使用 configureldap
选项来生成单一文件时,-ldap ldap_type 参数才是必需的。此参数指定 Content Platform Engine 用于认证用户的目录服务存储库的类型,并且必须是 activedirectory、adam、ca、edirectory、oid、oracledirectoryse 或 tivoli。adam 值既适用于 Microsoft ADAM 也适用于 AD LDS。
- -bootstrap bootstrap_operation
- 只有在同时生成所有文件或者使用 configurebootstrap
选项来生成单一文件时,-bootstrap bootstrap_operation 参数才是必需的。此参数指定概要文件的引导程序和文本抽取操作,并且必须是 new、modify 或 upgrade。
- -task task_name
- 必需参数 -tasktask_name 指定将生成相应的 XML 文件的任务。task_name 可以是下列其中一种:configurebootstrap、configurepricingmodel、configurejdbcgcd、configureldap 和 configureloginmodules。
- -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"。
- 根据需要重复此过程,以便生成所有必需的 XML 配置文件。