News
Perth, Australia
+ (61) 417713124
prosolutions@gavinsoorma.com

12c Management Agent Silent Installation

  • Posted by Gavin Soorma
  • On May 10, 2012
  • 2 Comments
  • 12c, agent.rsp, cloud control, emcli, Management Agent, Silent Installation

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 = 12.1.0.1.0

 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=”12.1.0.1.0″

Platform:Linux x86-64

Destination:/u01/app/oracle/agent_software

 === 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/12.1.0.1.0_AgentCore_226.zip12.1.0.1.0linux_x64

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 12.1.0.1.0_AgentCore_226.zip

-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 12.1.0.1.0_AgentCore_226.zip oracle@linux-orasql-001-dev.dev.domain:/u01/app/oracle/agent_software

 

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 12.1.0.1.0_AgentCore_226.zip

-rwxr-xr-x 1 oracle oinstall   4979329 Apr 16 10:50 12.1.0.1.0_PluginsOneoffs_226.zip

-rw-rw-r– 1 oracle oinstall 230621327 Sep 23  2011 agentcoreimage.zip

-rwxrwxr-x 1 oracle oinstall     17150 Sep 23  2011 agentDeploy.sh

-rw-rw-r– 1 oracle oinstall        91 Sep 23  2011 agentimage.properties

-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

 

OMS_HOST=”linux-oem-prod.dev.domain”

EM_UPLOAD_PORT=”4902″

AGENT_REGISTRATION_PASSWORD=”xxx”

AGENT_INSTANCE_HOME=”/u01/app/oracle/agent12g/agent_inst”

AGENT_PORT=”3872″

ORACLE_HOSTNAME=”linux-orasql-001-dev.dev.domain”

 

Run the agent deployment script

[oracle@linux-orasql-001-dev agent_software]$ ./agentDeploy.sh 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/12.1.0.1.0/jdk/bin/java -classpath /u01/app/oracle/agent12g/core/12.1.0.1.0/jlib/agentInstaller.jar:/u01/app/oracle/agent12g/core/12.1.0.1.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/agent12g/core/12.1.0.1.0 /u01/app/oracle/agent_software /u01/app/oracle/agent12g -prereq

 Validating oms host & port with url: http://linux-oem-prod.dev.domain:4902/empbs/genwallet

Validating oms host & port with url: https://linux-oem-prod.dev.domain:4902/empbs/genwallet

Return status:3

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

12.1.0.1.0_PluginsOneoffs_226.zip

Executing command : /u01/app/oracle/agent_software/unzip -o /u01/app/oracle/agent_software/12.1.0.1.0_PluginsOneoffs_226.zip -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/12.1.0.1.0/jdk/bin/java -classpath /u01/app/oracle/agent12g/core/12.1.0.1.0/oui/jlib/OraInstaller.jar:/u01/app/oracle/agent12g/core/12.1.0.1.0/oui/jlib/xmlparserv2.jar:/u01/app/oracle/agent12g/core/12.1.0.1.0/oui/jlib/srvm.jar:/u01/app/oracle/agent12g/core/12.1.0.1.0/oui/jlib/emCfg.jar:/u01/app/oracle/agent12g/core/12.1.0.1.0/jlib/agentInstaller.jar:/u01/app/oracle/agent12g/core/12.1.0.1.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/agent12g/core/12.1.0.1.0 /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/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prereqlogloc /u01/app/oracle/agent12g/core/12.1.0.1.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/u01/app/oracle/agent12g/core/12.1.0.1.0/prereqs  -J-DORACLE_HOSTNAME=linux-orasql-001-dev.dev.domain

Prereq Logs Location:/u01/app/oracle/agent12g/core/12.1.0.1.0/cfgtoollogs/agentDeploy/prereq<timestamp>.log

Agent install prereqs completed successfully

 

Cloning the agent home…

Executing command: /u01/app/oracle/agent12g/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/oracle/agent12g/core/12.1.0.1.0 -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/12.1.0.1.0/oui/bin/runInstaller -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/12.1.0.1.0/cfgtoollogs/agentDeploy/AttachHome<timestamp>.log

Attach home for sbin home completed successfully.

 

Updating home dependencies…

Executing command: /u01/app/oracle/agent12g/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST=”/u01/app/oracle/agent12g/sbin:/u01/app/oracle/agent12g/core/12.1.0.1.0″ -invPtrLoc /u01/app/oracle/agent12g/core/12.1.0.1.0/oraInst.loc -force

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

Update home dependency completed successfully.

 

Performing the agent configuration…

Executing command: /u01/app/oracle/agent12g/core/12.1.0.1.0/oui/bin/runConfig.sh ORACLE_HOME=/u01/app/oracle/agent12g/core/12.1.0.1.0 RESPONSE_FILE=/u01/app/oracle/agent12g/core/12.1.0.1.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true

Configuration Log Location:/u01/app/oracle/agent12g/core/12.1.0.1.0/cfgtoollogs/cfgfw/CfmLogger<timestamp>.log

Agent Configuration completed successfully

 

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

#!/bin/sh

#Root script to run

 /u01/app/oracle/agent12g/core/12.1.0.1.0/root.sh

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:

/u01/app/oracle/agent12g/core/12.1.0.1.0/cfgtoollogs/agentDeploy/agentDeploy_<timestamp>.log

Agent deployment completed successfully.

 

Run the root.sh script

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

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

/u01/app/oracle

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

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

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

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

Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0

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

—————————————————————

Agent Version     : 12.1.0.1.0

OMS Version       : 12.1.0.1.0

Protocol Version  : 12.1.0.1.0

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

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

Agent Process ID  : 2678

Parent Process ID : 2631

Agent URL         : https://linux-orasql-001-dev.dev.domain:3872/emd/main/

Repository URL    : https://linux-oem-prod.dev.domain:4902/empbs/upload

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

 1

2 Comments

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 *