sync_alerts
エージェントとリポジトリの間で指定されたターゲットのすべてのアラートを同期します。通常、このコマンドは、エージェントが最新のアラートをリポジトリにアップロードしていないために、リポジトリがエージェントの状態と同期されていないと判断される場合に使用します。
指定したターゲットのエージェントとリポジトリ間でアラートが同期されているかどうかを判断するには、get_unsync_alertsコマンドを実行します。
書式
emcli sync_alerts -target_type=type -target_name=name -agent_name=agent
オプション
-
target_type
内部ターゲット・タイプの識別子(host、oracle_database、emrepなど)。
-
target_name
ターゲットの名前。
-
agent_name
エージェントの名称。
例
例1
この例では、target_typeがhostで、target_nameがhostname.oracle.comのアラート状態を同期します。
emcli sync_alerts -target_type=host -target_name=hostname.oracle.com
例2
この例では、エージェントhostname.xyz.com:portがモニターするすべてのターゲットのアラート状態を同期します。
emcli sync_alerts -agent_name=hostname.xyz.com:port