エージェントで実行されるスクリプトを追加し、使用するスケーラビリティ サーバを決定することができます。 追加したスクリプトは、エージェント コンピュータに配布する必要があります。
次の手順に従ってください:
[プロパティの設定]ダイアログ ボックスが開きます。
注: スクリプトの場所は、絶対パスまたは相対パスで指定できます。 相対パスは、ITCM インストール ディレクトリ(通常は以下のいずれか)に対する相対パスになります。
Windows の場合
C:\Program Files(x86)\CA\DSM
UNIX/Linux の場合
/opt/CA/DSM
この機能では、以下のパラメータがサーバ選択スクリプトへ渡されます。
特定するスケーラビリティ サーバの名前をスクリプトが書き込むファイルの名前を指定します。
生成されたエラー情報をスクリプトが書き込むファイルの名前を指定します。
このアドレスに一致すると、このスクリプトを実行することになります。
DM スクリプトがロケーション ルールに対して設定されました。
注: スクリプトを指定する場合は、[スケーラビリティ サーバ]と[サブネット スキャン]の列を空にしておきます。 サブネット スキャンを使用していない場合は、[サブネット スキャン]列を空にしておきます。
例:
rem ---------------------------------------------------------------------
rem Simple location aware server identification script
rem This script writes a hard coded server name to the output file
rem ---------------------------------------------------------------------
dim sMatchingAddress as string
dim sOutputFileName as string
dim sErrorFileName as string
dim X as Integer
FOR X=0 to argc()
rem Read the output file from the provided parameters
if ( argv(X)="-o") THEN
sOutputFileName = argv(X+1)
ENDIF
rem read the matching address from the provided parameters
if ( argv(X)="-a") THEN
sMatchingAddress = argv(X+1)
ENDIF
rem read the matching address from the provided parameters
if ( argv(X)="-x") THEN
sErrorFileName = argv(X+1)
ENDIF
NEXT X
Dim fHandle as integer
fHandle = OpenFile(sOutputFileName,O_WRITE)
IF NOT(EOF(fHandle)) Then
WriteFile(fHandle,"sampleserver.ca.com")
CloseFile(fHandle)
exit
ENDIF
exit
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|