Thursday, July 19, 2018

Error: Agent status is currently UP. Shut down the Management Agent and wait for the agent to be marked UNREACHABLE before deleting

How to remove a target manually

Target to be removed: tangle.ecp.priv
OMS Repository:bugsy

-bash-4.1$ cd ./oracle_base/middleware/oms

Login successful
-bash-4.1$ ./emcli sync
Synchronized successfully
-bash-4.1$ ./emcli delete_target -name="tangle.ecp.priv:3872" -type="oracle_emd" -delete_monitored_targets
Error: Agent status is currently UP. Shut down the Management Agent and wait for the agent to be marked UNREACHABLE before deleting.

 ./emcli get_targets | grep tangle


Deinstalling in Silent Mode Using AgentDeinstall.pl Script

To deinstall a Management Agent in silent mode using the AgentDeinstall.pl script, follow these steps:
  1. Invoke the AgentDeinstall.pl script:
    $<AGENT_HOME>/perl/bin/perl <AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <AGENT_HOME>
    For example,
    $/u01/app/Oracle/core/12.1.0.1.0/perl/bin/perl /u01/app/Oracle/core/12.1.0.1.0/sysman/install/AgentDeinstall.pl -agentHome /u01/app/Oracle/core/12.1.0.1.0/
  2. Manually remove the targets, which were being monitored by the Management Agent you deinstalled, from the Enterprise Manager Cloud Control console.

No comments:

Post a Comment