IBM Enterprise Records, バージョン 5.1.+              

execute コマンド

execute コマンドは、指定した構成プロファイルまたは個別タスクの構成 XML ファイルから設定を適用します。コマンド名は大/小文字が区別されません。

Configuration Manager のグラフィカル・ユーザー・インターフェースで作成または編集したプロファイルの構成 XML ファイルを実行する必要がある場合は、ファイルを実行する前に、必要なパスワードの値が XML ファイルに含まれていることを確認してください。構成 XML ファイルを実行するには、以下のようにします。
  1. アプリケーション・サーバーを始動または停止します。
    表 1. 必要なアプリケーション・サーバーの状態
    アプリケーション・サーバー・タイプ 説明
    WebSphere® Application Server アプリケーション・サーバーが稼働していない場合は始動します。
    JBoss Application Server アプリケーション・サーバーを停止します。
    Oracle WebLogic Server アプリケーション・サーバーが稼働していない場合は始動します。
  2. 構成 XML ファイルを実行します (すべて一括して実行するか、一度に 1 つのファイルを実行します)。以下に構文を示します。

execute コマンド構文

以下の構文には、コマンドをフォーマット設定して読みやすくするために改行が含まれています。コマンドとオプションは、改行せずに 1 行で入力してください。

configmgr_cl.exe execute -profile profile_path 
[-task task_type | -taskfile 
task_file_name] [-silent] [-force] [-debug] [-help]

execute コマンド・パラメーター

-profile profile_path
-profile profile_path パラメーターは、
C:¥Program Files¥IBM¥EnterpriseRecords¥configure ¥profiles¥WASWebApplicationDeploymentProile
など、作成するプロファイルへの完全ディレクトリー・パスを指定するか、..¥profiles フォルダーへの相対パスを指定します。
-task task_type
-task task_type パラメーターは、実行するタスクを指定します。すべてのタスクを実行する場合、 または -taskfile task_file_name パラメーターを 指定する場合は、-task task_type パラメーターを 省略できます。
-taskfile task_file_name
-taskfile task_file_name パラメーターは、使用する構成 XML ファイルを指定します。task_file_name の値は大/小文字が区別されません。タスク・ファイル名は、listTasks コマンドにより報告されます。
-task または -taskfile を使用して、このプロファイル内のどのタスクを実行するか指定します。-task-taskfile のどちらも指定されていない場合、プロファイル内のすべてのタスクが実行されます。-task-taskfile の両方を指定する必要はありません。両方指定し、それらが一致しない場合は、コマンドによりエラーがスローされます。
-silent
-silent パラメーターは、コマンド実行中に出力がないことを意味します。
-debug
-debug パラメーターは、コマンドのロギングを可能にします。
制約事項: このパラメーターは、HP-UX のインストール済み環境ではサポートされません。
-help
-help は、コマンド・ヘルプを表示します。

execute コマンドの例

以下の例には、コマンドを読みやすく整えるために 改行が含まれています。コマンドとオプションは、改行せずに 1 行で入力してください。

プロファイル内のすべてのタスクを実行します。
以下のコマンドは、C:¥Program Files¥IBM¥EnterpriseRecords¥configure¥profiles¥WSWebApplicationDeploymentProfile ディレクトリーにある WSWebApplicationDeploymentProfile プロファイル内のすべてのタスクを実行します。
 configmgr_cl.exe execute -profile "C:¥Program Files¥IBM¥EnterpriseRecords
¥configure¥profiles¥WSWebApplicationDeploymentProfile"
プロファイル内の 1 つのタスクを実行します。
以下のコマンドは、C:¥Program Files¥IBM¥EnterpriseRecords¥configure¥profiles¥WSWebApplicationDeploymentProfileディレクトリーの deployWebApplication タスクを実行します。
configmgr_cl.exe execute -profile "C:¥Program Files¥IBM
¥EnterpriseRecords¥configure¥profiles
¥WSWebApplicationDeploymentProfile" -task deployWebApplication
-taskfile で指定されている 1 つのタスクを実行します。
以下のコマンドは、C:¥Program Files¥IBM¥EnterpriseRecords¥configure¥profiles¥WSWebApplicationDeploymentProfile ディレクトリーの redeployWebApplication.xml 構成 XML ファイルを実行します。
 configmgr_cl.exe execute -profile "C:¥Program Files¥IBM
¥EnterpriseRecords¥configure¥profiles
¥WSWebApplicationDeploymentProfile"
-taskfile redeployWebApplication.xml 
-silent を使用してプロファイル内の 1 つのタスクを実行します (出力は表示されません)。
以下のコマンドは、-silent を使用して、C:¥Program Files¥IBM¥EnterpriseRecords¥configure¥profiles¥WSWebApplicationDeploymentProfile ディレクトリー内の deployIER タスクを実行します (出力は表示されません)。
 configmgr_cl.exe execute -profile "C:¥Program Files¥IBM
¥EnterpriseRecords¥configure¥profiles
¥WSWebApplicationDeploymentProfile" -task deployIER -silent
execute コマンドのヘルプを表示します。
以下のコマンドは、execute コマンドのヘルプを表示します。
configmgr_cl.exe execute -help
このコマンドを -silent を使用して実行します (出力は表示されません)。
以下のコマンドは、-silent を使用して、C:¥Program Files¥IBM¥EnterpriseRecords¥configure¥profiles¥WSWebApplicationDeploymentProfile ディレクトリー内の deployWebApplication タスクを実行します (出力は表示されません)。
 configmgr_cl.exe execute -profile "C:¥Program Files
¥IBM¥EnterpriseRecords¥configure¥profiles
¥WSWebApplicationDeploymentProfile"
 -task deployWebApplication -silent 


フィードバック

最終更新日: 2011 年 8 月


© Copyright IBM Corp. 2011.
このインフォメーション・センターでは Eclipse テクノロジーが採用されています。(http://www.eclipse.org)