resync_target
Resync the target's setting (TragetCollection/ MetricExtension) with agent base on the provided options.
Format
emcli resync_target
-target_type=“host”
-target_names=“target_name1, target_name2 ..”
-setting=“TargetCollection | MetricExtension”
Options
-
-target_type
We must specify a single target type value in case of
TargetCollectionorMetricExtensionpassed in the-settingparameter, and it should be the same as specified in the repository. Standard target types include:host,oracle_database,oracle_apache,oracle_listener, andoracle_emd. To see all available target types available for your environment, check the linebreak$AGENT_HOME/sysman/admin/metadatadirectory. A metadata file (XML) exists for each target type.Only individual target types are currently supported.
-
-target_names
The target name should be the name of the target stored in the repository. All of the targets should be the same target type you specified in the
targetTypeparameter.Use a semicolon ( ; ) to separate the names. Command will be executed for only valid target name and target type combinations.
For example:
host1;host2;host3 -
-setting
Supporting:
TargetCollectionandMetricExtension:-
When target's collection settings between OMS and Agent is not matching, use
-setting TargetCollection -
When metric extension deployment has gone missing from the agent or the target's metric extension attachment is missing on agent, use
-setting MetricExtension
-
Examples
Example 1
emcli resync_target
-target_type=“host”
-target_names=“host1; host2 ”
-setting=“TargetCollection”Example 2
emcli resync_target
-targetType="host"
-targetNames="targetName1; targetName2"
-setting="MetricExtension"