RemoteTarget は、リモートでスクリプトを実行する run-remote コマンドと共に使用するユーティリティ クラスです。 RemoteTarget では、ホスト名、アドレス、認証に使用する認証情報などのターゲット システムの詳細を指定したり、エラー状態、出力、最終結果などのステータスや結果情報を取得したりします。
RemoteTarget(host [,user] [,pass] [,key] [,phrase] [, port])
void abort()
int createRemoteContext()
int destroyRemoteContext()
bool errorOccurred()
bool execute(strScript)
int getError()
string getHostName()
bool hasCompleted()
string output()
string result()
bool wasAborted()
int onError(e)
int receivedOutput(s)
int receivedResult(s)
static readonly REM_ERR_NONE
static readonly REM_ERR_CON
static readonly REM_ERR_AUTH
static readonly REM_ERR_CHN
static readonly REM_ERR_READ
static readonly REM_ERR_EXEC
static readonly REM_ERR_ABORT
static readonly REM_ERR_DISC
|
Copyright © 2013 CA.
All rights reserved.
|
|