Perth, Australia
+ (61) 417713124

12c Management Agent Silent Installation

  • Posted by Gavin Soorma
  • On May 10, 2012

Outlined here is the process used to deploy the 12c management agent on a target Linux x86_64 server using the silent installation method with an agent response file.

In this case the 12c  OMS host server is called linux-oem-prod and the target host where we are deploying the agent is .linux-orasql-001-dev.

In the next post we will see how we can deploy or push the 12c management agents to target hosts from 12c Cloud Control itself.


On the OMS host launch the EMCLI client

[oracle@linux-oem-prod Middleware]$ cd oms

 [oracle@linux-oem-prod oms]$ cd bin

 [oracle@linux-oem-prod bin]$ ./emcli login -username=sysman -password=xxx

Login successful


Synchronize EMCLI

[oracle@linux-oem-prod bin]$ ./emcli sync

Synchronized successfully


Check the platforms for which the Management Agent software is available on the OMS host

[oracle@linux-oem-prod bin]$ ./emcli get_supported_platforms

Getting list of platforms …

Check the logs at /u01/app/oracle/Middleware/oms/bin/agent.log

About to access self-update code path to retrieve the platforms list..

Getting Platforms list  …


Version =

 Platform = Linux x86-64


Platforms list displayed successfully.


Download the Management Agent software from Oracle Software Library to a temporary directory on the OMS host

[oracle@linux-oem-prod bin]$ ./emcli get_agentimage -destination=/u01/app/oracle/agent_software -platform=”Linux x86-64″ -version=”″

Platform:Linux x86-64


 === Partition Detail ===

Space free : 14 GB

Space required : 1 GB

Check the logs at /u01/app/oracle/agent_software/get_agentimage_2012-04-15_22-50-00-PM.log

Setting property ORACLE_HOME to:/u01/app/oracle/Middleware/oms

calling pulloneoffs with arguments:/u01/app/oracle/Middleware/oms/u01/app/oracle/Middleware/oms/sysman/agent/

Check this logs for more information: /u01/app/oracle/Middleware/oms/sysman/prov/agentpush/logs


[oracle@linux-oem-prod bin]$ cd /u01/app/oracle/agent_software

[oracle@linux-oem-prod agent_software]$ ls -l

total 230400

-rw-r—– 1 oracle oinstall 235679029 Apr 15 22:50

-rw-r–r– 1 oracle oinstall      1805 Apr 15 22:50 get_agentimage_2012-04-15_22-50-00-PM.log


Transfer the downloaded zip file to the host where we would like to install the 12c management agent

[oracle@linux-oem-prod agent_software]$ scp -rp


Unzip the file on the target host

Check the directory contents

[oracle@linux-orasql-001-dev agent_software]$ ls -l

total 460420

-rw-r—– 1 oracle oinstall 235679029 Apr 16 10:50

-rwxr-xr-x 1 oracle oinstall   4979329 Apr 16 10:50

-rw-rw-r– 1 oracle oinstall 230621327 Sep 23  2011

-rwxrwxr-x 1 oracle oinstall     17150 Sep 23  2011

-rw-rw-r– 1 oracle oinstall        91 Sep 23  2011

-rw-rw-r– 1 oracle oinstall      3856 Sep 23  2011 agent.rsp

drwxr-xr-x 7 oracle oinstall      4096 Apr 16 10:50 plugins

-rwxr-xr-x 1 oracle oinstall       223 Apr 16 10:50 plugins.txt

-rwxr-xr-x 1 oracle oinstall    145976 Sep 23  2011 unzip


Edit the response file agent.rsp









Run the agent deployment script

[oracle@linux-orasql-001-dev agent_software]$ ./ AGENT_BASE_DIR=/u01/app/oracle/agent12g RESPONSE_FILE=/u01/app/oracle/agent_software/agent.rsp 

 Validating the OMS_HOST & EM_UPLOAD_PORT

Executing command : /u01/app/oracle/agent12g/core/ -classpath /u01/app/oracle/agent12g/core/ oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/agent12g/core/ /u01/app/oracle/agent_software /u01/app/oracle/agent12g -prereq

 Validating oms host & port with url:

Validating oms host & port with url:

Return status:3

Unzipping the to /u01/app/oracle/agent12g ….

Executing command : /u01/app/oracle/agent_software/unzip -o /u01/app/oracle/agent_software/ -d /u01/app/oracle/agent12g

 Checking the ownership of agent base directory:/u01/app/oracle/agent12g

Checking for proper ownership on the agent base directory.

Checks whether the agent base directory is owned by the agent user oracle  and that its parent directory is owned by either the agent user or root.


Login name is : oracle & file owner is : oracle


Agent Base directory verification completed Successfully.

 Ownership check completed.

Executing command : /u01/app/oracle/agent12g/core/ -classpath /u01/app/oracle/agent12g/core/ oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/agent12g/core/ /u01/app/oracle/agent_software /u01/app/oracle/agent12g AGENT_BASE_DIR=/u01/app/oracle/agent12g AGENT_BASE_DIR=/u01/app/oracle/agent12g RESPONSE_FILE=/u01/app/oracle/agent_software/agent.rsp


 Executing agent install prereqs…

Executing command: /u01/app/oracle/agent12g/core/ -ignoreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prereqlogloc /u01/app/oracle/agent12g/core/ -entryPoint -detailedExitCodes PREREQ_CONFIG_LOCATION=/u01/app/oracle/agent12g/core/

Prereq Logs Location:/u01/app/oracle/agent12g/core/<timestamp>.log

Agent install prereqs completed successfully


Cloning the agent home…

Executing command: /u01/app/oracle/agent12g/core/ -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/oracle/agent12g/core/ -responseFile /u01/app/oracle/agent_software/agent.rsp  AGENT_BASE_DIR=/u01/app/oracle/agent12g AGENT_BASE_DIR=/u01/app/oracle/agent12g RESPONSE_FILE=/u01/app/oracle/agent_software/agent.rsp -noconfig  ORACLE_HOME_NAME=agent12g1 -force

Clone Action Logs Location:/u01/app/oraInventory/logs/cloneActions<timestamp>.log

Cloning of agent home completed successfully


Attaching sbin home…

Executing command: /u01/app/oracle/agent12g/core/ -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/u01/app/oracle/agent12g/sbin ORACLE_HOME_NAME=sbin12g1 -force

Attach Home Logs Location:/u01/app/oracle/agent12g/core/<timestamp>.log

Attach home for sbin home completed successfully.


Updating home dependencies…

Executing command: /u01/app/oracle/agent12g/core/ -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST=”/u01/app/oracle/agent12g/sbin:/u01/app/oracle/agent12g/core/″ -invPtrLoc /u01/app/oracle/agent12g/core/ -force

Update Home Dependencies Location:/u01/app/oracle/agent12g/core/<timestamp>.log

Update home dependency completed successfully.


Performing the agent configuration…

Executing command: /u01/app/oracle/agent12g/core/ ORACLE_HOME=/u01/app/oracle/agent12g/core/ RESPONSE_FILE=/u01/app/oracle/agent12g/core/ ACTION=configure MODE=perform COMPONENT_XML={} RERUN=true

Configuration Log Location:/u01/app/oracle/agent12g/core/<timestamp>.log

Agent Configuration completed successfully


The following configuration scripts need to be executed as the “root” user.


#Root script to run


To execute the configuration scripts:

1. Open a terminal window

2. Log in as “root”

3. Run the scripts

Agent Deployment Successful.

Agent deployment log location:


Agent deployment completed successfully.


Run the script

[root@linux-orasql-001-dev ~]#  /u01/app/oracle/agent12g/core/

Finished product-specific root actions.

/etc exist

Finished product-specific root actions.


Check the status of the agent on the target host where it has been deployed


[oracle@linux-orasql-001-dev oracle]$ pwd


[oracle@linux-orasql-001-dev oracle]$ cd agent12g/

[oracle@linux-orasql-001-dev agent12g]$ cd core

[oracle@linux-orasql-001-dev core]$ cd

[oracle@linux-orasql-001-dev bin]$ ./emctl status agent

Oracle Enterprise Manager 12c Cloud Control

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


Agent Version     :

OMS Version       :

Protocol Version  :

Agent Home        : /u01/app/oracle/agent12g/agent_inst

Agent Binaries    : /u01/app/oracle/agent12g/core/

Agent Process ID  : 2678

Parent Process ID : 2631

Agent URL         :

Repository URL    :

Started at        : 2012-04-16 11:20:59

Started by user   : oracle

Last Reload       : (none)

Last successful upload                       : 2012-04-16 11:31:33

Last attempted upload                        : 2012-04-16 11:31:33

Total Megabytes of XML files uploaded so far : 0.02

Number of XML files pending upload           : 0

Size of XML files pending upload(MB)         : 0

Available disk space on upload filesystem    : 45.31%

Collection Status                            : Collections enabled

Last attempted heartbeat to OMS              : 2012-04-16 11:32:06

Last successful heartbeat to OMS             : 2012-04-16 11:32:06



Agent is Running and Ready



Anthony Tagliaferro
  • Feb 22 2017
Nice, I used pretty much the same process for all of my agent deployments. I like the way you have things organized.. Good Job ! :)
Javed Malkani
  • Apr 27 2017
Superb Explanation.

Leave Reply

Your email address will not be published. Required fields are marked *