This discussion is archived
14 Replies Latest reply: Aug 1, 2013 11:44 AM by liaison1 RSS

How to move the OEM agent to another OMS?

liaison1 Newbie
Currently Being Moderated

We want to move the agent to another OMS at different server but the same version.   I made the move change as the following:

 

1.  shutdown the agent.

2.  backup the emd.properties and change the REPOSITORY_URL parameter in the file.

3.  Made the cleanup

 

rm -r $ORACLE_HOME/sysman/emd/state/*

rm -r $ORACLE_HOME/sysman/emd/collection/*

rm -r $ORACLE_HOME/sysman/emd/upload/*

rm $ORACLE_HOME/sysman/emd/lastupld.xml

rm $ORACLE_HOME/sysman/emd/agntstmp.txt

rm $ORACLE_HOME/sysman/emd/blackouts.xml

rm $ORACLE_HOME/sysman/emd/protocol.ini

 

4.  emctl clearstate agent

5.  emctl start agent.

 

It works for some agents, but did not work for some agents.   Why?  Can somebody explain of how to for the ones did not work?    Thanks!

  • 1. Re: How to move the OEM agent to another OMS?
    mkathirv Expert
    Currently Being Moderated

    What is your OMS and Agent version?

    What is the error you're getting when you start the agent with new REPOSITORY_URL in emd.properties after moving to new server?

     

    Cheers

    Mani

  • 2. Re: How to move the OEM agent to another OMS?
    liaison1 Newbie
    Currently Being Moderated

    The version is 10.2.0.5.

    There is no error when starting the agent and the agent is running fine.   But still pointing to the old OMS.

  • 3. Re: How to move the OEM agent to another OMS?
    mkathirv Expert
    Currently Being Moderated

    If you changed the REPOSITORY_URL and emdWalletSrcUrl parameter with new value in emd.properties then follow steps below.

     

    1. Resecure agent

    emctl secure agent

    2. Check the agent status with REPOSITORY_URL value is reflecting to new one.

    emctl status agent

     

    Mani

  • 4. Re: How to move the OEM agent to another OMS?
    liaison1 Newbie
    Currently Being Moderated

    I tried that to make the secure agent.  When checking the agent status, it is still showing pointing to the old OMS server.   However, the URL shows the new OMS server.   Where did I missed?   I used same procedure for all other DB server agent.   It worked fine.    BTW, this is a 3 node RAC system.   Could that make a different?   

  • 5. Re: How to move the OEM agent to another OMS?
    Courtney Llamas Journeyer
    Currently Being Moderated

    On RAC systems, there is an additional emd.properties file.   Be sure to change both:

     

    ../agent/sysman/config/emd.properties

     

    and

     

    ../agent/<hostname>/config/emd.properties

     

    Then resecure the agent again.    It usually only reads the rac emd.properties under <hostname> but for some reason on resecure it appears to look at the generic one as well.

  • 6. Re: How to move the OEM agent to another OMS?
    liaison1 Newbie
    Currently Being Moderated

    Yes, you are right.   Once I change the other emd.properties file it changed to try to the new OMS server.   Apparently, the one in the $OEM_HOME/<machine>/sysman/config is in effect for the agent, not the other one.

     

    However, when I tried to upload, go the error:

     

    EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..

     

    I, then, try to make it secure connection, but it is failed with the error:

     

    ldctrdb01|PDAMLDV11|/oracle/product/agent10g/bin $ ./emctl secure agent

    Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0. 

    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.

    Enter Agent Registration password :

    Agent is already stopped...   Done.

    Securing agent...   Started.

    Requesting an HTTPS Upload URL from the OMS...   Done.

    Requesting an Oracle Wallet and Agent Key from the OMS...   Failed.

    Failed to contact the OMS at the HTTP URL set in /oracle/product/agent10g/ldctrdb01/sysman/config/emd.properties

    The Agent has not been secured.

     

    Any suggestion to help?   Thanks.

  • 7. Re: How to move the OEM agent to another OMS?
    Daryl E. Explorer
    Currently Being Moderated

    I like to call the $AGENT_HOME/bin/agentca -d   (or -f) script when moving things around. This simply rediscovers and hence sets up the agent on the new oms. Also handy after doing a cleanup on the OMS of an agetn.

  • 8. Re: How to move the OEM agent to another OMS?
    liaison1 Newbie
    Currently Being Moderated

    Tried.   Got like this without any further process.   The session I setup can pope up with x window like runInstaller.   But nothing happened. 

     

    ldctrdb01|PDAMLDV11|/oracle/product/agent10g/bin $ ./agentca -d -c ldctrdb01

     

    Stopping the agent using /oracle/product/agent10g/bin/emctl  stop agent

    Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0. 

    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.

    Stopping agent ... stopped.

    Running agentca using /oracle/product/agent10g/oui/bin/runConfig.sh ORACLE_HOME=/oracle/product/agent10g ACTION=Configure MODE=Perform RESPONSE_FILE=/oracle/product/agent10g/response_file RERUN=TRUE INV_PTR_LOC=/etc/oraInst.loc COMPONENT_XML={oracle.sysman.top.agent.10_2_0_1_0.xml}

    Perform - mode is starting for action: Configure

     

    ... ...

  • 9. Re: How to move the OEM agent to another OMS?
    Daryl E. Explorer
    Currently Being Moderated

    Nothing should pop-up - it should just go into the oms.

    Be sure and check for errors in Setup->Agents tab - Misconfigured agents or even Duplicate Agents.

    I dont usually pass any parameters other than -d or -f -- but it should be the same.

     

    emctl status agent - does it show it talking to the OMS now?


  • 10. Re: How to move the OEM agent to another OMS?
    liaison1 Newbie
    Currently Being Moderated

    The command ldctrdb01|PDAMLDV11|/oracle/product/agent10g/bin $ ./agentca -d -c ldctrdb01    just hang.  I waited for 30 min and cancelled it.  Again, this is the message during the hang:

     

    ldctrdb01|PDAMLDV11|/oracle/product/agent10g/bin $ ./agentca -d -c ldctrdb01

    Stopping the agent using /oracle/product/agent10g/bin/emctl  stop agent
    Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0. 
    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
    Stopping agent ... stopped.
    Running agentca using /oracle/product/agent10g/oui/bin/runConfig.sh ORACLE_HOME=/oracle/product/agent10g ACTION=Configure MODE=Perform RESPONSE_FILE=/oracle/product/agent10g/response_file RERUN=TRUE INV_PTR_LOC=/etc/oraInst.loc COMPONENT_XML={oracle.sysman.top.agent.10_2_0_1_0.xml}
    Perform - mode is starting for action: Configure

     

     

     

    Then,  I started the agent and run upload.  Still got the same error:

     

    EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..

  • 11. Re: How to move the OEM agent to another OMS?
    Daryl E. Explorer
    Currently Being Moderated

    Just do the ./agentca -d

    Nothing else ..

     

    You can ping the oms and such - no firewalls?

    Daryl.

  • 12. Re: How to move the OEM agent to another OMS?
    Courtney Llamas Journeyer
    Currently Being Moderated

    On a cluster, agentca -d does not work.  You have to use agentca -f -n <node1,node2,node3>

    Also, check to be sure the format of /oracle/product/agent10g/ldctrdb01/sysman/config/emd.properties  is set correctly, sounds like there might be an error in there.

  • 13. Re: How to move the OEM agent to another OMS?
    liaison1 Newbie
    Currently Being Moderated

    Thanks for help.   I ended up to remove the agent and reinstall it.   It runs fine now.

     

    Thanks again!

  • 14. Re: How to move the OEM agent to another OMS?
    liaison1 Newbie
    Currently Being Moderated

    It looks that the RAC agents are different in configuration and changes. 

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points