Friday 15 November 2019

Oracle EM Cloud Control 12c - Removing Host Agent Binaries and Target from monitoring



1. Login to the remote host from which the agent has to be removed. Go to agent installation directory and stop Agent.
       $ cd /opt/emc12/agent_inst/bin/
       $ ./emctl stop agent

2. Login to OEM Cloud Control and navigate to to Setup->Manage Cloud Control->Agents



3. Select the target host from which the agent needs to be decommissioned.



4. You will be taken to the Target host details page. Click on Agent ->Target setup->Agent Decommission



5. Click continue for confirming the agent is down->continue->ok
   Wait for few minutes for the process to complete, and you will get a message that the agent has been decommissioned.

6. Next you will have to remove the Agent software on the Agent host using AgentDeinstall perl script.
   Login to Agent host as oem user. Search for the pearl script AgentDeinstall.pl. Usually it will be in 
   $AGENT_HOME/sysman/install/
    In my system, the AGENT_HOME was /opt/emc12/core/12.1.0.5.0
      
      $export AGENT_HOME=/opt/emc12/core/12.1.0.5.0
      $cd $AGENT_HOME/sysman/install/
      $./AgentDeinstall.pl -agentHome $AGENT_HOME

Once done you will get the message as below

   Deinstall in progress (Friday, November 15, 2019 2:21:52 PM EST)
   Configuration assistant "Agent Deinstall Assistant" succeeded
............................................................... 100% Done.
End of install phases.(Friday, November 15, 2019 2:21:58 PM EST)
End of deinstallations


Deinstall successful

NOTE: The targets monitored by this Management Agent will not be deleted in the Enterprise Manager Repository by this deinstall script. Make sure to delete the targets manually from the Cloud Control Console for a successful deinstallation.


























No comments:

Post a Comment