vCenter Server のアラーム アクションが次のエラーで失敗する:スクリプトのタイムアウト、終了エラー (Script timed out, terminated error)
search cancel

vCenter Server のアラーム アクションが次のエラーで失敗する:スクリプトのタイムアウト、終了エラー (Script timed out, terminated error)

book

Article ID: 342359

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

PowerCLI スクリプトの完了に通常以上の時間がかかると、次の症状が発生します。
  • vCenter Server アラーム アクションが失敗する。
  • 次のエラーが表示される:

    Alarm 'New Alarm' did not complete script: A general system error

    occurred: Failed to run script: Script timed out, terminated

    error


Symptoms:
免責事項:これは英文の記事「Alarm action in vCenter Server fails with the error: Script timed out, terminated error (2146040)」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

Environment

VMware vCenter Server 5.1.x
VMware vCenter Server 5.5.x
VMware vCenter Server 5.0.x
VMware vCenter Server 6.0.x

Cause

これは、想定される動作です。vCenter Server での PowerCLI スクリプトのデフォルト タイムアウトは 5 分です。vCenter Server で、完了に 5 分超かかる PowerCLI スクリプトは、いずれも終了させられます。

Resolution

この問題を回避するには、必要な値とともに詳細パラメータ config.vpxd.userCommandTimeoutSecs を追加して、vCenter Server での PowerCLI スクリプトのタイムアウトまでの期間を延ばします。

詳細パラメータを追加するには:
  1. vSphere Client を使用して vCenter Server にログインします。
  2. [管理] を選択して、[vCenter Server 設定] をクリックします。
  3. 設定リストで [詳細設定] を選択します。
  4. [キー] フィールドに config.vpxd.userCommandTimeoutSecs を入力します。
  5. [値] フィールドに 600 を入力し、タイムアウトまでの期間を 10 分間に延ばします。

    config.vpxd.userCommandTimeoutSecs の値は、秒単位で設定します。

  6. [追加] をクリックします。
  7. [OK] をクリックします。
:新しい設定を適用するために vCenter Server を再起動する必要はありません。

Additional Information

Alarm action in vCenter Server fails with the error: Script timed out, terminated error