グリッド・インストールでのコマンドまたはスクリプトの実行(installationExec)
installationExec
コマンドは、指定されたとおりにグリッド内のインスタンスでコマンド(システム・コマンドやTimesTenコマンドなど)またはスクリプトを実行します。
ttGridAdmin installationExec [-only hostname[.installname]] [-exclude hostname[.installname]] [-parallel n] command | -script filepath
コマンドまたはスクリプトを実行すると、TIMESTEN_INSTALL
環境変数はモデルに定義されているインストールの完全修飾パス名を含めるように設定されます。
オプション
installationExec
コマンドには、次のオプションがあります。
オプション | 説明 |
---|---|
|
コマンドまたはスクリプトは、指定したインストールに対してのみ実行されます。 モデルに定義されているホスト名およびインストール名を使用します。それがホストにある唯一のインストールである場合は、インストール名を含める必要はありません。 |
|
コマンドやスクリプトは、インストールを指定した場合を除き、グリッド内のすべてのインストールで実行されます。 モデルに定義されているホスト名およびインストール名を使用します。それがホストにある唯一のインストールである場合は、インストール名を含める必要はありません。 |
|
コマンドまたはスクリプトが最大 |
|
または:
|
例
この例では、各インストールのファイル・システム上のディスク領域使用量を確認します。
% ttGridAdmin installationExec df '$TIMESTEN_INSTALL' Commands executed on: mysys2host.installation1 rc 0 mysys4host.installadc rc 0 mysys1host.installation1 rc 0 mysys3host.installslc rc 0 Return code from mysys2host.installation1: 0 Output from mysys2host.installation1: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda2 117144964 42660228 68534120 39% / Return code from mysys4host.installadc: 0 Output from mysys4host.installadc: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda2 117144964 42660228 68534120 39% / Return code from mysys1host1.installation1: 0 Output from mysys1host.installation1: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda2 173483816 57971304 106700020 36% / Return code from mysys3host.installslc: 0 Output from mysys3host.installslc: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda2 173483816 57971312 106700012 36% /
ノート
-
コマンドやスクリプトは、各インストールでパスワードなしSSHを介してインスタンス管理者として実行します。
-
実行がタイムアウト前に完了しなかった場合、コマンドは2000を返します。
-
実行中に、
stdout
およびstderr
の出力が、installationExec
コマンドからのstdout
およびstderr
の出力の一部として表示されます。出力はバッファに入れられるため、異なるコマンドからの出力が混在することはありません。