Installing the EM Cloud Control agent

Go back to OCM 12c Preparation Project 

Oracle Enterprise Manager Cloud Control 12c introduced several ways to deploy agents to hosts.

The Oracle Management Agents are responsible for gathering metrics from 
targets such as database instances, listeners and the host themselves and 
sending them to the Oracle Management repository and Server for further 
processing. It also interacts with targets by executing commands sent via 
the OMS Console and the EM Command Line Interface (EMCLI).

EM12c release 1 introduced four ways of deploying Management Agents.

1. Add Target Host Wizard 
-> Agents are mass deployed using the Management Console.
2. AgentPull 
-> Silent install script to automatically download and deploy agents 
   on remote targets using a response file.
3. agentDeploy 
-> Silent install script to deploy agents using a response file after 
   manually downloading a compressed package of the agent using EMCLI 
   and transferring it to remote targets.
4. RPM 
-> Use a .rpm package to deploy to targets that support it (Linux x86-64).

Starting with EM12c release 3 (12.1.0.3.0) agents can now be mass deployed using EMCLI.

[1] Installing Management Agents Using Add Host Targets Wizard

add_host_wiz

  • Navigate to the “Add Targets Manually” screen using the menu at the top-right of the screen (Setup > Add Target > Add Targets Manually).
  • Accept the “Add Host Targets” option by clicking the “Add Host…” button.Click the “Add +” button. Enter the host and platform, then click the “Next” button.
  • Enter the installation details and click the “Next” button.
  • Check the information on the review screen and click the “Deploy Agent” button.
  • Wait while the installation takes place. The “Add Host Status” page refreshes every 30 seconds.
    -bash-4.1$ ./emctl resettz agent
    Oracle Enterprise Manager Cloud Control 12c Release 2 
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    Agent is running. Stop the agent and rerun the command.
    
    -bash-4.1$
    -bash-4.1$ ./emctl stop agent
    Oracle Enterprise Manager Cloud Control 12c Release 2 
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    Stopping agent ..... stopped.
    -bash-4.1$
    -bash-4.1$ ./emctl status agent
    Oracle Enterprise Manager Cloud Control 12c Release 2 
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    ---------------------------------------------------------------
    Agent is Not Running
    
    -bash-4.1$ ./emctl resettz agent
    Oracle Enterprise Manager Cloud Control 12c Release 2 
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    Updating /u01/app/oracle11g/diag/agent/agent_inst/sysman/config/emd.properties...
    Successfully updated /u01/app/oracle11g/diag/agent/agent_inst/sysman/config/emd.properties.
    
    Login as the em repository user and run the  script:
    exec mgmt_target.set_agent_tzrgn('10.151.1.18:3871','Asia/Calcutta')
    and commit the changes
    
    This can be done for example by logging into sqlplus and doing
    
    SQL> exec mgmt_target.set_agent_tzrgn('10.151.1.18:3871','Asia/Calcutta')
    SQL> commit
    
    -bash-4.1$ ./emctl start agent
    Oracle Enterprise Manager Cloud Control 12c Release 2 
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    Starting agent ............... started.
    
    set pagesize 1000
    col target_name format a25
    col timezone_region format a25
    SELECT target_name,timezone_region FROM mgmt_targets;
  • When the installation completes, run the specified “root.sh” script and click the “Done” button.
  • The host will now be visible on the “Targets > Hosts” screen.

======================
Patch to Documentation
======================

Enterprise Manager Cloud Control Basic Installation Guide
7 Installing Oracle Management Agents
7.4.1 Installing Management Agents Using Add Host Targets Wizard