generateConfig 指令對指定的配置設定檔產生配置 XML 檔。
指令名稱不區分大小寫。
generateConfig 指令語法
下列語法包括換行,將指令格式化以方便閱讀。
在同一行輸入指令和選項,且沒有換行。
configmgr_cl.exe generateConfig -appserver app_server_type
-profiletype profile_type
-profile path_myprofile_directory [-deploymenttype
ier_websphere_deployment] [-aextdeploymenttype
-aext_websphere-deployment] [-silent] [-help] [-debug]
generateConfig 指令參數
- -appserver app_server_type
- -appserver app_server_type 參數指定應用程式伺服器的類型,而這必須是 websphere、weblogic
或 jboss 其中之一。此參數僅適用於 webapplication_deployment 設定檔類型。在其他設定檔類型中,會忽略此參數。
- -profiletype profile_type_profile
- -profiletype profile_type_profile 參數指定要使用的設定檔。
profile_type_profile 值必須是下列其中一個項目:
- webapplication_deployment - Web 應用程式設定檔。
- objectstore_configuration - 物件儲存庫配置設定檔。
- objectstore_upgrade - 升級配置設定檔。
- -profile path_myprofile_directory
- -profile path_myprofile_directory 參數指定要建立的設定檔的目錄路徑。
您可以指定完整路徑,例如 C:\Program Files\IBM\EnterpriseRecords\configure\profiles\WASWebApplicationDeploymentFile,或 ier_install_path/configure/profiles 的相對路徑,例如 WASWebApplicationDeploymentFile。如果路徑包含空格,請以雙引號括住路徑。
- -deploymenttype ier_websphere_deployment
- -deploymenttype ier_websphere_deployment 參數指定 WebSphere® 上的 IBM® Enterprise
Records 的部署類型。有效值必須是 standard、cluster
或 network。此參數僅適用於
webapplication_deployment 設定檔類型,其中 –appserver 是設定為 websphere。在其他情況中,會忽略此參數。
如果未指定此參數,它會預設為 standard。
- -aextdeploymenttype aext_websphere_deployment
- -aextdeploymenttype aext_websphere_deployment 參數指定 WebSphere 上的
Application Engine 或 Workplace XT 的部署類型。有效值必須是 standard、cluster
或 network。此參數僅適用於
webapplication_deployment 設定檔類型,其中 –appserver 是設定為 websphere。在其他情況中,會忽略此參數。
如果未指定此參數,它會預設為 standard。
- -debug
- -debug 參數啟用指令的記載功能。
限制: 在 HP-UX 安裝架構中,不支援這個參數。
- -silent
- -silent 參數表示執行指令時沒有輸出。
- -help
- -help 顯示指令說明。
generateconfig 指令範例
下列範例包括換行,將指令格式化以方便閱讀。
在同一行輸入指令和選項,且沒有換行。
- 顯示 generateconfig 指令的說明。
- 下列指令顯示 generateconfig 指令的說明:
configmgr_cl.exe generateconfig -help
- 在 WebSphere 上產生 Web 應用程式部署。
- 下列指令針對要部署在 WebSphere 上的新 Web 應用程式設定檔,在 C:\Program
Files\IBM\EnterpriseRecords\configure\profiles\ 目錄中產生 WSWebApplicationDeploymentFile 檔:
configmgr_cl.exe generateConfig -appserver websphere
-profiletype webapplication_deployment -profile
"C:\Program Files\IBM\EnterpriseRecords\configure
\profiles\WSWebApplicationDeploymentFile"
- 在 WebSphere 叢集環境中產生 Web 應用程式部署。
- 下列指令針對要部署在 WebSphere 叢集環境上的新 Web 應用程式設定檔,在 C:\Program
Files\IBM\EnterpriseRecords\configure\profiles\ 目錄中產生 WSWebApplicationDeploymentFile 檔:
configmgr_cl.exe generateConfig -appserver websphere
-profiletype webapplication_deployment -deploymenttype cluster
-aextdeploymenttype cluster -profile "C:\Program Files\
IBM\EnterpriseRecords\configure\profiles
\WSWebApplicationDeploymentFile"
- 產生物件儲存庫配置設定檔。
- 下列指令在 C:\Program Files\IBM\EnterpriseRecords\configure\profiles\ 目錄中為新的物件儲存庫設定檔產生 ObjectStoreConfigurationProfile 檔:
configmgr_cl.exe generateConfig -profiletype
objectstore_configuration -profile
"C:\Program Files\IBM\EnterpriseRecords\configure\
profiles\ObjectStoreConfigurationProfile"