検索クエリーを入力してください
<book_title> を検索 ...
Cluster Server 7.3.1 エージェント開発者ガイド - AIX、Linux、Solaris、Windows
Last Published:
2018-01-17
Product(s):
InfoScale & Storage Foundation (7.3.1)
- 概要
- エージェントのエントリポイントの概要
- エージェントのエントリポイントについて
- エージェントエントリポイントの説明
- action エントリポイントについて
- info エントリポイントについて
- C++ またはスクリプトエントリポイントの使用上の注意事項
- エージェント情報ファイルについて
- ArgList 属性と ArgListValues 属性について
- C++ でのエントリポイントの作成
- C++ でのエントリポイントの作成について
- C++ のエントリポイントの構文
- エージェントフレームワークの基本関数
- コンテナサポートのためのエージェントフレームワーク基本関数
- スクリプトでのエントリポイントの作成
- スクリプトでのエントリポイントの作成について
- スクリプトエントリポイントの構文
- エージェントフレームワークの基本関数
- VCSAG_GET_ATTR_VALUE
- コンテナをサポートするエージェントフレームワーク基本関数
- スクリプトのエントリポイントの例
- エージェントメッセージのログ
- カスタムエージェントの作成
- スクリプトベースの IMF 対応カスタムエージェントの作成
- エージェントのテスト
- 静的タイプ属性
- 静的属性について
- 静的タイプ属性の定義
- AdvDbg
- ArgList
- 状態の遷移図
- 国際化されたメッセージ
- First Failure Data Capture(FFDC)を使用した VCS リソースの予期しない動作のトラブルシューティング
- 付録 A. 5.0 より前の VCS エージェントの使用
VCSAgRegister
void VCSAgRegister(const char *notify_res_name, const char *res_name, const char *attr_name);
この基本関数は、リソース res_name の属性 attr_name の値が変わったときに、エージェントフレームワークがリソース notify_res_name に通知することを要求します。通知は、notify_res_name に対して attr_changed エントリポイントを実行することによって行われます。
notify_res_name は res_name と同じでかまいません。
この基本関数は、どのエントリポイントからでも実行することが可能ですが、attr_changed エントリポイントが実装されている場合にのみ有効です。次に例を示します。
#include "VCSAgApi.h" ... void res_open(const char *res_name, void **attr_val) { // Register to get notified when the // "CriticalAttr" of this resource is modified. VCSAgRegister(res_name, res_name, "CriticalAttr"); // Register to get notified when the "CriticalAttr" // of current resource is modified. It is assumed // that the name of the current resource is given // as the first ArgList attribute. VCSAgRegister((const char *) attr_val[0], (const char *) attr_val[0], "CriticalAttr"); // Register to get notified when the // "CriticalAttr" of "CentralRes" is modified. VCSAgRegister(res_name, "CentralRes", "CriticalAttr"); // Register to get notified when the // "CriticalAttr" of another resource is modified. // It is assumed that the name of the other resource // is given as the first ArgList attribute. VCSAgRegister(res_name, (const char *)attr_val[0], "CriticalAttr"); }