disable_target

Disables the target on both the Management Repository and Management Agent side.

Syntax

 emcli disable_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 disabled.

  • -name=target_name1

    Name of the target. You can use the percentage character (%) as a wild character to disable 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 disabled.

  • -ignore_invalid_target

    When specified, the process ignores invalid targets.

Examples

Example 1

The following command disables the target on the Management Agent and OMS and it fails if the target is invalid.

    emcli disable_target
        -type="oracle_em_service"
        -name="TestService"
        -agent="TestAgent"

Example 2

The following command disables all the targets of "oracle_em_service" type on the "TestAgent" Management Agent both on the OMS and Management Agent side. It ignores invalid targets.

    emcli disable_target
        -type="oracle_em_service"
        -name="%"
        -agent="TestAgent"
        -ignore_invalid_target