enable_target
Enables the target on both the Management Repository and Management Agent side.
Syntax
emcli enable_target
-type="target_type1"
-name="target_name1"
-agent="agent_name1"
[-ignore_invalid_target]
[ ] indicates that the parameter is optional.Options
-
-type=target_type1
Target type of the target being enabled.
-
-name=target_name1
Name of the target. You can use the percentage character (%) as a wild character to enable all targets of a specified type on a specified Management Agent.
-
-agent=agent_name1
Name of the Management Agent on which the target has to be enabled.
-
-ignore_invalid_target
When specified, the process ignores invalid targets.
Examples
Example 1
The following command enables the target on the Management Agent and OMS and raises an error if the target is invalid.
emcli enable_target
-type="oracle_em_service"
-name="TestService"
-agent="TestAgent"
Example 2
The following command enables all the targets of this type on the "TestAgent" Management Agent both on the OMS and Management Agent side. It ignores invalid targets.
emcli enable_target
-type="oracle_em_service"
-name="%"
-agent="TestAgent"
-ignore_invalid_target