Enterprise Manager Generic (MOSC)

MOSC Banner

How to Move 12c Agents to a New OMS

RaySmith
RaySmith Posts: 404 Blue Ribbon

Comments

  • Venkata Thiruveedhi-Oracle
    Venkata Thiruveedhi-Oracle Posts: 2,777 Gold Crown - Community Leader

    Hi,

    Re-configuring a 12c Agent from one 12c OMS setup to another 12c OMS, without a re-installation of the Agent is currently not supported.
    In previous Enterprise Manager releases(10g and 11g), the target discovery was initiated by the Agent. The targets will be discovered and first updated in the <AGENT_HOME>/sysman/emd/targets.xml file and then pushed to the OMS. But in 12c, the target registration happens first at the OMS side and then will be pushed to the Agent to be updated in targets.xml file. Hence, when a 12c Agent is re-configured to a new 12c OMS, it will not accept this Agent or its targets for monitoring.

    Hence, to re-configure a 12c Agent to a new OMS:
    1) Stop the Management Agent:
       For Unix platform:
          $<AGENT_INSTANCE_HOME>/bin/emctl stop agent
     
       For windows platform:
          $<AGENT_INSTANCE_HOME>\bin\emctl stop agent

    2) Remove the Management Agent instance home:
      
      For Unix platform
         $rm -rf <absolute_path_to_agent_instance_home>
       For Windows platform
         $deltree  <absolute_path_to_agent_instance_home>
         Remove the windows agent service "Oracleagent12c1Agent" from services pannel

    3) (Optional) From the Enterprise Manager Cloud Control console, Remove the targets monitored by the Management Agent.
         Ref : Note 1459204.1 12c: How to Delete Agent/Targets Using EMCLI Delete Verb.

    4) Create a new instance home (<agent_inst>) and execute "agentDeploy.sh/bat" script
           
         $mkdir AGENT_BASE/agent_inst
     
     For Unix platform:
        $<AGENT_BASE_DIR>/core/<version>/sysman/install/agentDeploy.sh AGENT_BASE_DIR=<absolute_path_to_agent_base_dir> OMS_HOST=<new_oms hostname> EM_UPLOAD_PORT=<http/https_upload_port> AGENT_REGISTRATION_PASSWORD=<registration_password> AGENT_INSTANCE_HOME=<absolute_path_to_new_agent_instance_home> -configOnly
     

     For Windows platform:
        $<AGENT_BASE_DIR>\core\<version>\sysman\install\agentDeploy.bat AGENT_BASE_DIR=<absolute_path_to_agent_base_dir> OMS_HOST=<new_oms hostname> EM_UPLOAD_PORT=<http/https_upload_port> AGENT_REGISTRATION_PASSWORD=<registration_password> AGENT_INSTANCE_HOME=<absolute_path_to_new_agent_instance_home> -configOnly

    Regards,
    Venkat

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center