前のトピック: Intellisig の複製次のトピック: Intellisig に対する追加情報


DMScript の拡張

ソフトウェア定義および検出レコードの作成

カスタム Intellisig を作成するときには、エージェント コンピュータ上で検出されるソフトウェア レコードをレポートするために Intellisig スクリプト内で DMScript 関数を呼び出します。 DMScript は、検出されたソフトウェア レコードを出力ファイルに書き込む組み込み関数を提供します。

注: DMScript は、エージェントでコマンドを実行するための共通手段を提供するスクリプト言語です。 DMScript の詳細については、CA Client Automation マニュアル選択メニューから「Desktop Management スクリプト言語」ガイドを参照してください。

Intellisig スクリプトは、以下の順序で関数を呼び出す必要があります。

  1. OpenDetectedSoftwareOutputFiles
  2. CreateDetectedSoftwareProduct
  3. CreateDetectedSoftwareRelease
  4. CreateDetectedSoftwarePatch
  5. CreateDetectedSoftwareReleaseInstance
  6. CloseDetectedSoftwareOutputFiles

Intellisig 関数の詳細については、「Desktop Management スクリプト言語」ガイドを参照してください。

Intellisig オブジェクトの階層

カスタム Intellisig を作成する場合、Intellisig オブジェクトの階層の理解することが重要です。 オブジェクトは、特定の階層で存在する必要があります。 各オブジェクトには親があり、前もって作成されている必要があります。 階層は、以下のようになります。

Intellisig 階層を示す図

固定パラメータと可変パラメータ

検出されたソフトウェア出力ファイルを作成する関数を使用して、固定パラメータおよび可変パラメータを受け入れることにより、将来の拡張用に対する方法が提供されます。 修正されたパラメータは必須ですが、可変パラメータはオプションです。 可変パラメータには、通常 Intellisig と関連付けられ、追加のプロパティを追加するための手段となるプロパティが含まれます。 関数は、将来、既存のスクリプトに影響を与えることなく、可変パラメータを追加して拡張できます。

固定パラメータと可変パラメータの指定および使用には、以下のガイドラインが適用されます。

サポートされるアーキテクチャ

以下に、ソフトウェア検出出力ファイルに検出されたレコードを書き込む DMscript 関数へ渡すことができるアーキテクチャ名のリストを示します。

エラー コードおよびオプション プロパティ

LogDetectedSoftwareError メソッドは、特定の形式でエラー メッセージを受け入れます。 エラー メッセージは、エージェントに Intellisig 実行エラーがあるとき生成されるローカライズ可能な文字列です。 次に、エラー メッセージは、ドメイン マネージャに送信され、DSM エクスプローラ内のソフトウェア インベントリ収集タスクに対するステータス コメントとして表示されます。

例: LogDetectedSoftwareError

LogDetectedSoftwareError("ISE:00400","PARAM5=Microsoft Windows 7 Ultimate x64 64 en-us|PARAM6=VersionNumber=6.1.7600 |VersionLabel=6.1.7600 |Language=en-us |Bitness=64 |Architecture=x64 |Manufacturer=Microsoft Corporation|Category=Operating Systems |Description=The Microsoft Windows 7 Product|PARAM7=SWDETECT_BADARGS");

Intellisig スキャナは、自動的に以下のエラー メッセージを生成して、Intellisig の起動に関連する問題を報告します。

エラー コード

エラー テキスト

ISE:00302

The intellisig named %1$t, version %2$t, UUID %3$t, is missing the mandatory parameter %4$t.

ISE:00303

Intellisig named %1$t, version %2$t, UUID %3$t, script file %4$t did not produce an output file.

ISE:00304

The execution of Intellisig named %1$t, version %2$t, UUID %3$t, script file %4$t has exceeded the allowable timeout (%5$t seconds).

ISE:00305

Intellisig named %1$t, version %2$t, UUID %3$t, script file %4$t could not be found.

ISE:00306

Intellisig named %1$t, version %2$t, uuid %3$t, script file %4$t, caused an internal error while attempting to start an intellisig

ISE:00307

The dmscript intepreter reported an error parsing the Intellisig named %1$t, version %2$t, uuid %3$t, script file %4$t

ISE:00405

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, %5$t was called to create "%6$t" with an unknown parent "%7$t".

ISE:00406

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, %5$t was called to create "%6$t" with a parent "%7$t" of the wrong type.

ISE:00407

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, %5$t was called to create an instance with a parent "%6$t"of the wrong type.

ISE:00411

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, %5$t was called with mandatory property "%6$t" set to blank.

ISE:00412

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, the lastaccessed property was specified with an invalid value: %5$t: should be in the format: yyyy-mm-dd:hh:mm.

以下のエラー メッセージを生成して、Intellisig の作成に関連する問題を処理できます。

エラー コード

エラー テキスト

関数の構文

ISE:00400

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, Failed to create software product. The parameters were ProductName:%5$t OptionalProperties : %6$t. Return Code : %7$t

LogDetectedSoftwareError ("ISE:00400", "PARAM5=ProductName|PARAM6=OptionalProperties|PARAM7=ReturnCode")

ISE:00401

Intellisig %1$t version %2$t, UUID %1$t, script %4$t, Failed to create Software Release. The parameters were ProducName:%5$t ReleaseNameProductRelease:%6$t OptionalProperties %7$t. Return Code : %8$t

LogDetectedSoftwareError ("ISE:00401", "PARAM5=ProductName|PARAM6=ReleaseName|PARAM7=OptionalProperties|PARAM8=ReturnCode")

ISE:00402

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, Failed to create Software Patch. The parameters were ReleaseName:%5$t PatchName:%6$t OptionalProperties %7$t. Return Code: %8$t

LogDetectedSoftwareError ("ISE:00402", "PARAM5=

ReleaseName|PARAM6=PatchName|PARAM7=OptionalProperties|PARAM8=ReturnCode")

ISE:00403

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, Failed to create Software Instance. The parameters were PatchName:%5$t OptionalProperties: %6$t. Return Code : %7$t

LogDetectedSoftwareError ("ISE:00403", "PARAM5=

PatchName|PARAM6=OptionalProperties|PARAM7=ReturnCode")

ISE:00404

Intellisig %1$t version %2$t, UUID %3$t, script %4$t, produced the following error : %5$t

注: PARAM5 に、任意のカスタム エラー テキストを指定できます。

LogDetectedSoftwareError ("ISE:00404", "PARAM5="An unexpected error has occured")