sync_alerts
Synchronizes all alerts for the specified target between the Agent and the repository. You typically use this command when you think that the Agent has not uploaded the latest alert to the repository, and the repository is therefore out of sync with the Agent state.
To determine if alerts are out of sync between the Agent and the repository for the specified target, run the get_unsync_alerts command.
Format
emcli sync_alerts -target_type=type -target_name=name -agent_name=agent
Options
-
target_type
Internal target-type identifier (host, oracle_database, emrep, and so forth).
-
target_name
Name of the target.
-
agent_name
Name of the Agent.
Examples
Example 1
This example synchronizes alert states for target_type "host" and target_name "hostname.oracle.com".
emcli sync_alerts -target_type=host -target_name=hostname.oracle.com
Example 2
This example synchronizes alert states for all targets that the Agent "hostname.xyz.com:port" monitors.
emcli sync_alerts -agent_name=hostname.xyz.com:port