Re: Cloud Control Agent Question

From: Rich J <rich242j_at_gmail.com>
Date: Wed, 1 May 2024 15:07:41 -0500
Message-ID: <CAANsBX1GL0n7cmAYBCy+cWXbnfcCuDJSv3g-=koPeDCXx9X-bQ_at_mail.gmail.com>



Having just gone through something similar in order to get rid of the EM Hybrid Gateway I had configured, after dropping the Agent from the console (I used the web), I also needed to remove the Agent and home from the target host (all Linux for me):

export $AGENT_HOME=/u01/app/oem/product/emagent13.5/agent_13.5.0.0.0 perl $AGENT_HOME/sysman/install/AgentDeinstall.pl -agentHome $AGENT_HOME

It looks like this perl will detach/remove the Home properly, updating the Oracle Inventory. Seems that it could prevent future issues with target discovery, among other things. Obviously, run those as the Agent owner and substitute the correct path of your "agent_13.4.0.0.0" directory to test before using en masse.

Big fan of Ansible, but not here. Seems like it will cause more pain than it would save in this case.

GL!
Rich

On Wed, May 1, 2024, 10:34 Seth Miller <sethmiller.sm_at_gmail.com> wrote:

> You can use emcli to delete the agent.
>
> https://support.oracle.com/knowledge/Enterprise%20Management/1459204_1.html
>
>
>
>
> On Wed, May 1, 2024, 10:20 AM Scott Canaan <dmarc-noreply_at_freelists.org>
> wrote:
>
>> We are in the process of upgrading our cloud control agents from 13.4 to
>> 13.5. The sys admins do it by removing the 13.4 agent directory and
>> replacing it with the 13.5 directory, using Ansible. However, that messes
>> up cloud control as it can no longer communicate with the agent and doesn’t
>> know that it’s been upgraded. What we have to do is:
>>
>> - Delete the agent from cloud control
>>
>> - Upgrade the agent on the database server
>>
>> - Re-set up everything the agent monitored in cloud control
>>
>>
>>
>> If we don’t do it in that order, it doesn’t work.
>>
>>
>>
>> The question we have is: Is there a command line way to delete the agent
>> from cloud control? That way we can ensure that steps 1 and 2 above are
>> done in the correct order.
>>
>>
>>
>> *Scott Canaan ‘88*
>>
>> *Sr Database Administrator *Information & Technology Services
>> Finance & Administration
>>
>>
>> *Rochester Institute of Technology *o: (585) 475-7886 | f: (585) 475-7520
>>
>> *srcdco_at_rit.edu <srcdco_at_rit.edu>* | c: (585) 339-8659
>>
>> *CONFIDENTIALITY NOTE*: The information transmitted, including
>> attachments, is intended only for the person(s) or entity to which it is
>> addressed and may contain confidential and/or privileged material. Any
>> review, retransmission, dissemination or other use of, or taking of any
>> action in reliance upon this information by persons or entities other than
>> the intended recipient is prohibited. If you received this in error, please
>> contact the sender and destroy any copies of this information.
>>
>>
>>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed May 01 2024 - 22:07:41 CEST

Original text of this message