Re: Change Hostname of target agent on EM 12c

From: Backseat DBA <backseatdba_at_gmail.com>
Date: Tue, 12 Nov 2013 14:45:18 -0800
Message-ID: <CAKsxbLofJ7k8epjYcv0Os2Wpbi6X1NBSMa5Z3vjttGrESLMseA_at_mail.gmail.com>



Yeah on my 11g environment I always just reinstalled the agent. It was the easiest/quickest way to handle it. And it looks like I might have to do that with 12c. I am not seeing a property to change using set_agent_property.

Kellyn - We have already changed our hostname and currently the service wont startup and the agent is listed as unreachable. Although my databases from that host are up in EM so that is weird. But since the agent is unreachable I am unable to use emcli get_agent_properties. I did use that command on another agent and I don't see any property that has the hostname other than EMD_URL. Is that what I am supposed to change? What about the agent name, how do you change that? It looks like an uninstall and reinstall will be the cleanest way to go.

On Tue, Nov 12, 2013 at 6:29 AM, sundar mahadevan < sundarmahadevan82_at_gmail.com> wrote:

> Sorry backseatdba to hijack your thread. Hope you would be kind enough to
> let me post it. I have tried to do the same hostname change on agent 11g
> connect to 11g grid and the only way to achieve this was to reinstall the
> agent. Could someone please confirm that there is no alternative or am i
> overlooking an easy solution? Thanks in advance.
>
>
> On Mon, Nov 11, 2013 at 11:08 PM, Kellyn Pot'vin <kellyn.potvin_at_ymail.com>wrote:
>
>> Brave, you are...:)
>>
>> 1. Step away from the emd.properties file and tell me you have a
>> backup...:)
>> 2. Using this link:
>> http://docs.oracle.com/cd/E24628_01/em.121/e17786/cli_verb_ref.htm#CACFCFEJ
>> View the syntax for get_agent_property_ value and
>> set_agent_property_value. This should help you with the syntax to query the
>> value and reset it.
>>
>> Good luck,
>> Kellyn
>>
>> Sent from Yahoo Mail on Android<http://overview.mail.yahoo.com/mobile/?.src=Android>
>>
>> ------------------------------
>> * From: * Backseat DBA <backseatdba_at_gmail.com>;
>> * To: * Kellyn Pot'vin <kellyn.potvin_at_ymail.com>;
>> * Cc: * oracle-l_at_freelists.org <oracle-l_at_freelists.org>;
>> * Subject: * Re: Change Hostname of target agent on EM 12c
>> * Sent: * Tue, Nov 12, 2013 1:15:46 AM
>>
>> Thanks, and just the person I was hoping was going to respond. I
>> found get_agent_properties and set_agent_properties but what do I change on
>> the agent? EMD_URL? That is the only thing that I see that has the
>> hostname. Also is this the same as modifying the emd.properties file on
>> the host? I tried modifying that file and my service (Windows) will not
>> startup. Is there something else that needs to be done?
>>
>> Thanks for your help.
>>
>>
>> On Mon, Nov 11, 2013 at 3:42 PM, Kellyn Pot'vin <kellyn.potvin_at_ymail.com>wrote:
>>
>>> Its an easy thing to do from the OMS server using EMCLI, (Enterprise
>>> Manager Command Line Interface) commands. Once logged in,
>>> list_agent_property to get the target for the host and then you should be
>>> able to set_agent_property to correct the issue.
>>>
>>> Hope this helps,
>>> Kellyn
>>>
>>> Kellyn Pot'Vin
>>> Senior Technical Consultant
>>> Enkitec
>>> DBAKevlar.com
>>> RMOUG Director of Training Days Conference
>>>
>>>
>>>
>>>
>>> ~Tombez sept fois, se relever huit!
>>>
>>>
>>> On Monday, November 11, 2013 2:10 PM, Backseat DBA <
>>> backseatdba_at_gmail.com> wrote:
>>> We recently had to change the hostname of one of the servers my EM 12c
>>> is monitoring. What do I have to do to in EM 12c to recognize the new
>>> server name? Do I have to uninstall the agent and re-install?
>>>
>>>
>>>
>>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 12 2013 - 23:45:18 CET

Original text of this message