©2015 - 2022 Chad’s Technoworks. Disclaimer and Terms of Use

Chad’s TechnoWorks My Journal On Technology

Information Technology

Oracle 12c Enterprise Manager Cloud Control Installation - page 7

OEM AGENT DEPLOYMENT


SETUP SELF UPDATE FOR MULTI-PLATFORM AGENT PULL AND AGENT DEPLOY

If you have multiple target Operating System platform to run the management agents other the platform that the OEM was installed, you need to download an installation image of the agent appropriate to those platform. All these agent installation files are stored in the OEM repository. The downloading is simple if the OEM server has access to the internet. But there are situations that the OEM server itself has no internet connection, perhaps due to security or compliance requirements. The steps outlined below are for acquiring the agent software in offline mode.

Reference: OEM 12cR4 Basic Installation Guide, 7.3.2.2 Acquiring the Management Agent Software in Offline Mode


Offline Agent Catalog Update


Login to the OEM console, then go to


Setup menu -> Provisioning and Patching, Offline Patching -> Connection [x] Offline

 

A URL will be displayed:

https://updates.oracle.com/download/em_catalog.zip


Download the file from a computer with internet access, and do not unzip the file.


Upload the em_catalog.zip onto the oms user directory, then paste the full path and file onto the form of offline patching.



Setup menu -> Extensibility -> Self Update

Click [Check Updates]

A message is displayed contains URL to access a catalog of all updates and download this file:


https://updates.oracle.com/Orion/Download/download_patch/p9348486_112000_Generic.zip


Login to EM CLI:


./emcli login -username=sysman


Synchronize EM CLI:

./emcli sync


Import the archive into the OMS instance or Management Agent:


emcli import_update_catalog -file=/home/oraoem/install/12cOEM/p9348486_112000_Generic.zip -omslocal


SAMPLE OUTPUT>>>


oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ ./emcli login -username=sysman

Enter password :


Login successful

oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ ./emcli sync

Synchronized successfully

oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ emcli import_update_catalog -file=/export/home/oraem/agent12cSolx64/p9348486_112000_Generic.zip -omslocal

Processing catalog for Middleware Profiles and Gold Images

Processing update: Middleware Profiles and Gold Images - Three Fusion Middleware Provisioning Profiles with different heap size configuration

Processing catalog for Agent Software

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Microsoft Windows (32-bit)

Processing update: Agent Software - Agent Software (12.1.0.3.0) for Microsoft Windows (32-bit)

Processing update: Agent Software - Agent Software (12.1.0.2.0) for Microsoft Windows (32-bit)

Processing update: Agent Software - Agent Software (12.1.0.1.0) for Microsoft Windows (32-bit)

Processing update: Agent Software - Agent Software (12.1.0.4.0) for HP-UX PA-RISC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.3.0) for HP-UX PA-RISC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.2.0) for HP-UX PA-RISC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.1.0) for HP-UX PA-RISC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Linux x86

Processing update: Agent Software - Agent Software (12.1.0.3.0) for Linux x86

Processing update: Agent Software - Agent Software (12.1.0.2.0) for Linux x86

Processing update: Agent Software - Agent Software (12.1.0.1.0) for Linux x86

Processing update: Agent Software - Agent Software (12.1.0.3.0) for Oracle Solaris on x86-64 (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.2.0) for Oracle Solaris on x86-64 (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.1.0) for Oracle Solaris on x86-64 (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Oracle Solaris on SPARC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.3.0) for Oracle Solaris on SPARC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.2.0) for Oracle Solaris on SPARC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.1.0) for Oracle Solaris on SPARC (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Microsoft Windows x64 (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.3.0) for Microsoft Windows x64 (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.2.0) for Microsoft Windows x64 (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.1.0) for Microsoft Windows x64 (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Linux x86-64

Processing update: Agent Software - Agent Software (12.1.0.3.0) for Linux x86-64

Processing update: Agent Software - Agent Software (12.1.0.2.0) for Linux x86-64

Processing update: Agent Software - Agent Software (12.1.0.1.0) for Linux x86-64

Processing update: Agent Software - Agent Software (12.1.0.4.0) for IBM AIX on POWER Systems (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.3.0) for IBM AIX on POWER Systems (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.2.0) for IBM AIX on POWER Systems (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.1.0) for IBM AIX on POWER Systems (64-bit)

Processing update: Agent Software - Agent Software (12.1.0.4.0) for IBM: Linux on System z

Processing update: Agent Software - Agent Software (12.1.0.3.0) for IBM: Linux on System z

Processing update: Agent Software - Agent Software (12.1.0.2.0) for IBM: Linux on System z

Processing update: Agent Software - Agent Software (12.1.0.1.0) for IBM: Linux on System z

Processing update: Agent Software - Agent Software (12.1.0.4.0) for HP-UX Itanium

Processing update: Agent Software - Agent Software (12.1.0.3.0) for HP-UX Itanium

Processing update: Agent Software - Agent Software (12.1.0.2.0) for HP-UX Itanium

Processing update: Agent Software - Agent Software (12.1.0.1.0) for HP-UX Itanium

Processing catalog for Management Connector

Processing update: Management Connector -

             IBM TEC Connector - 12.1.0.3.0

        

Processing update: Management Connector -

             IBM TEC Connector - 12.1.0.2.0

        

Processing update: Management Connector -

             Microsoft SCOM R2 Connector - 12.1.0.3.0

        

Processing update: Management Connector -

             Microsoft SCOM R2 Connector - 12.1.0.2.0

        

Processing update: Management Connector -

             Microsoft SCOM preR2 Connector - 12.1.0.3.0

        

Processing update: Management Connector -

             Microsoft SCOM preR2 Connector - 12.1.0.2.0

        

Processing update: Management Connector -

             Microsoft SCOM 2012 Connector - 12.1.0.1.0

        

Processing update: Management Connector - BMC Remedy 7.6, 8.0, 8.1 Service Desk Connector - 12.1.0.3.0

Processing update: Management Connector - BMC Remedy 7.6.04 Service Desk Connector - 12.1.0.2.0

Processing update: Management Connector - BMC Remedy Change Management Connector - 12.1.0.1.0

Processing update: Management Connector -

            IBM Tivoli Netcool/OMNIbus Connector - 12.1.0.3.0

        

Processing update: Management Connector -

            IBM Tivoli Netcool/OMNIbus Connector - 12.1.0.2.0

        

Processing update: Management Connector -

             HP Service Manager 9 Connector - 12.1.0.1.0

        

Processing update: Management Connector -

             HP Service Manager 7.1 Connector - 12.1.0.2.0

        

Processing update: Management Connector -

             HP Service Manager 7.0 Connector - 12.1.0.2.0

        

Processing update: Management Connector -

             HP Operations Manager UNIX Connector - 12.1.0.3.0

        

Processing update: Management Connector -

             HP Operations Manager UNIX Connector - 12.1.0.2.0

        

Processing update: Management Connector -

             CA Service Desk Connector - 12.1.0.3.0

        

Processing update: Management Connector -

             CA Service Desk Connector - 12.1.0.2.0

        

Processing catalog for Extensibility Development Kit

Processing catalog for Plug-in

Processing update: Plug-in - Enterprise Manager for Oracle Virtual Desktop Infrastructure

Processing update: Plug-in - Enterprise Manager for Oracle Virtual Desktop Infrastructure

Processing update: Plug-in - Enterprise Manager for Oracle Utilities Application provides management, metrics and monitoring capabilities for the Oracle Utilities products that use the Oracle Utilities Application Framework.

Processing update: Plug-in - Enterprise Manager for Oracle Utilities provides management and monitoring for the Oracle Utilities area.

Processing update: Plug-in - Application Management Pack for Oracle Utilities provides management and monitoring for the Oracle Utilities area

Processing update: Plug-in - Enterprise Manager for Oracle Enterprise Taxation and Policy Management provides management and monitoring for the Oracle Enterprise Taxation and Policy Management area.

Processing update: Plug-in - Application Management Pack for Oracle Enterprise Taxation and Policy Management provides management and monitoring for the Oracle Enterprise Taxation and Policy Management area

Processing update: Plug-in - Application Management Pack for Oracle Enterprise Taxation and Policy Management provides management and monitoring for the Oracle Enterprise Taxation and Policy Management area

Processing update: Plug-in - Enables management capabilities for Oracle VM in Enterprise Manager.

Processing update: Plug-in - Enables cloud self service framework and portal in Oracle Enterprise Manager.

Processing update: Plug-in -

        Enterprise Manager Storage Management Framework provides Snap Clone functionality by leveraging the snapshot and Copy-on-Write (CoW) features of the underlying storage.

  

Processing update: Plug-in - Enterprise Manager for Fusion Middleware consists of monitoring and management for Oracle Fusion Middleware and diagnostics in middleware area.

Processing update: Plug-in - Enterprise Manager for Oracle Database provides comprehensive management for Oracle Database and related targets such as Real Application Cluster, Automatic Storage Management (ASM) etc.

Processing update: Plug-in - Enterprise Manager for Cloud Framework provides the foundation services for Private Cloud management.

Processing update: Plug-in - Enterprise Manager for Zero Data Loss Recovery Appliance provides comprehensive management functionality for Zero Data Loss Recovery Appliance.

Processing update: Plug-in - Enterprise Manager for Sun Ray Software

Processing update: Plug-in - Enterprise Manager for Oracle ZFS Storage Appliances

Processing update: Plug-in - Enterprise Management Plug-in for Oracle ZFS Storage Appliances

Processing update: Plug-in - Management Plug-in for the Sun ZFS Storage Appliance Family

Processing update: Plug-in - Management Plug-in for the Sun ZFS Storage Appliance Family

Processing update: Plug-in - Enterprise Manager for OUD

Processing update: Plug-in - Enterprise Manager for Oracle Key Manager

Processing update: Plug-in - Enterprise Manager for Oracle Flash Storage System

Processing update: Plug-in - Enterprise Manager for Oracle Instant Messaging Server is used for monitoring/managing the Oracle Instant Messaging Server

Processing update: Plug-in - Enterprise Manager for MySQL Database

Processing update: Plug-in - Enterprise Manager for Oracle Tuxedo

Processing update: Plug-in - Enterprise Manager for Oracle Tuxedo

Processing update: Plug-in - Management Pack for Oracle Tuxedo 12.1.0.1.0

Processing update: Plug-in - Enterprise Manager for Oracle GoldenGate

Processing update: Plug-in - Enterprise Manager for Oracle GoldenGate

Processing update: Plug-in - Enterprise Manager for Sybase ASE. Plugin provides comprehensive monitoring Sybase ASE Environments.

Processing update: Plug-in - Enterprise Manager for Ops Center Infrastructure stack

Processing update: Plug-in - Enterprise Manager for Ops Center Infrastructure stack

Processing update: Plug-in - Ops Center Infrastructure stack management plug-in.

Processing update: Plug-in - Ops Center Infrastructure stack management plug-in.

Processing update: Plug-in - Enterprise Manager for Microsoft SQL Server

Processing update: Plug-in - Enterprise Manager for DB2. Plugin provides comprehensive monitoring of DB2 environments.

Processing update: Plug-in - Enterprise Manager for Oracle Audit Vault and Database Firewall (AVDF) provides monitoring and management of AVDF system.

Processing update: Plug-in - Enterprise Manager for Oracle TimesTen In-Memory Database

Processing update: Plug-in - Enterprise Manager for Oracle Communications enables management of Oracle Communications products

Processing update: Plug-in - Enterprise Manager for Oracle Communications enables management of Oracle Communications products

Processing update: Plug-in -

                Enterprise Manager for Pillar Axiom

        

Processing update: Plug-in - Enterprise Manager for PeopleSoft

Processing update: Plug-in - Enterprise Manager for PeopleSoft

Processing update: Plug-in -

    Enterprise Manager for Jdedwards EnterpriseOne consists of monitoring and management for Oracle Jdedwards EnterpriseOne system.

  

Processing update: Plug-in - Oracle Jdedwards EnterpriseOne Plugin consists of monitoring and management for Oracle Jdedwards EnterpriseOne system.

Processing update: Plug-in - Enterprise Manager for Oracle E-Business Suite consists of System Management and Change Management Feature Sets

Processing update: Plug-in - Oracle Application Management Pack for Oracle E-Business Suite consists of System Management and Change Management Feature Sets

Processing update: Plug-in - Oracle Application Management Pack for Oracle E-Business Suite consists of System Management and Change Management Feature Sets

Processing catalog for Test Data Management templates

Processing update: Test Data Management templates - Mask template Fusion Rel v1.x Combined All Family

Processing update: Test Data Management templates - Data Masking template for Oracle E-Business suite 12.1.3 (Standard Model)

Processing update: Test Data Management templates - Data Masking template for Oracle E-Business suite 12.1.3 (JG model)

Processing update: Test Data Management templates - Preparation script required for Oracle E-Business Suite masking process

Processing update: Test Data Management templates - ADM template Fusion Rel v1.x Combined All Family

Processing update: Test Data Management templates - Application Data Model Template for Oracle E-Business Suite 12.1.3(Standard Model)

Processing update: Test Data Management templates - Application Data Model Template for Oracle E-Business Suite 12.1.3(JG Model)

Processing catalog for Compliance Content

Processing catalog for Informational

Processing update: Informational - Announcing New and Updated Cloud Management Capabilites for Database, Infrastructure, and Testing

Processing update: Informational - Enterprise Manager Cloud Control 12c Release 2 Plug-in Update 1 (12.1.0.2) now available on OTN

Processing update: Informational - Enterprise Manager Cloud Control 12C white papers available now on Oracle Technology Network

Processing update: Informational - Integration of Oracle Business Intelligence (BI) Publisher 11.1.1.5.0 with Enterprise Manager Cloud Control 12.1.0.1

Processing update: Informational - Management of Oracle VM 3.1.1 now available with Oracle Enterprise Manager 12c

Processing update: Informational - Oracle Enterprise Manager Cloud Control Mobile now available for Apple iPhone

Processing catalog for Provisioning Bundle


Successfully uploaded the Self Update catalog to Enterprise Manager. Use the Self Update Console to view and manage updates.

oraem@s11node1:/oem/app/oraem/middleware/oms/bin$



Download The Agent For Your Supported Platform

Select an Update from the list of Udates that show Available.

Click Download then a message with a URL will appear.


The following are the URLs for the platforms where most agents will be deployed:


solsparc

https://updates.oracle.com/Orion/Services/download/p18797124_112000_Generic.zip?aru=17700661&patch_file=p18797124_112000_Generic.zip


hpuxIA

https://updates.oracle.com/Orion/Services/download/p18797152_112000_Generic.zip?aru=17700665&patch_file=p18797152_112000_Generic.zip


win64

https://updates.oracle.com/Orion/Services/download/p18797147_112000_Generic.zip?aru=17700664&patch_file=p18797147_112000_Generic.zip


linux x86-64

https://updates.oracle.com/Orion/Services/download/p18797087_112000_Generic.zip?aru=17700659&patch_file=p18797087_112000_Generic.zip



Upload Agents To OMS For Each Platform


Upload the file onto the oms user dir, then import the file onto the oms.


Example:


./emcli import_update -omslocal -file=/home/oraoem/install/12cOEM/p18797124_112000_Generic.zip


oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$ ./emcli import_update -omslocal -file=/home/oraoem/install/12cOEM/p18797124_112000_Generic.zip

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Oracle Solaris on SPARC (64-bit)

Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$ ./emcli import_update -omslocal -file=/home/oraoem/install/12cOEM/self_updt/agent_hpuxIA/p18797152_112000_Generic.zip


Processing update: Agent Software - Agent Software (12.1.0.4.0) for HP-UX Itanium

Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$ ./emcli sync

Synchronized successfully

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$ ./emcli import_update -omslocal -file=/home/oraoem/install/12cOEM/self_updt/agent_win64/p18797147_112000_Generic.zip

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Microsoft Windows x64 (64-bit)

Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$ ./emcli sync

Synchronized successfully

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$ ./emcli import_update -omslocal -file=/home/oraoem/install/12cOEM/self_updt/agent_linux64/p18797087_112000_Generic.zip

Processing update: Agent Software - Agent Software (12.1.0.4.0) for Linux x86-64

Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.

oraoem@vopcdcgoem01:/oms/app/oraem/middleware/oms/bin$


Once done, select the Management Agent and click Apply. This will stage the management Agent software in the Software Library and make it available to the Add Host Targets wizard which will be used for installation of agents.




UNDERSTANDING AGENT DIRECTORIES


Agent Base Directory and Agent Home Directory

Agent Base Directory is a directory outside the Oracle Middleware Home, where the Management Agent home is created.

When installing Enterprise Manager Cloud Control and a standalone Management Agent using the Add Host Targets Wizard, you are required to enter an installation base directory. This installation base directory is also your Agent Base Directory.


For example, if your Agent Base Directory is /oem/app/oraem/agent12c then the Agent Home Directory would then be /oem/app/oraem/agent12c/core/12.1.0.4.0


Agent Instance Directory

Agent Instance Directory is a directory agent_inst created for storing all Management Agent configuration files.

This directory is created inside the Agent Base Directory.


For example, if your Agent Base Directory is /oem/app/oraem/agent12c then the Agent Instance Directory by default is /oem/app/oraem/agent12c/agent_inst


For additional details related to conceptual understanding of Cloud Control, read this doc - Chapter 2: Understanding The Basics




USING AGENT DEPLOY SCRIPT


To deploy a management agent by using the agentDeploy script, follow these steps:

1. Create a user for the management agent, create the required directories, and give permission to the management agent user.

The user need to be a member of oinstall and dba group. It is quite often that an existing oracle user of the target hosts is being used also as the management agent user.


You need to pre-create the directory where you’d place the management agent software:


@pacific as oradb,

mkdir -p $ORACLE_BASE/agent12c


2. Log in to the OMS host as the ORACLE user, and log in to OEM using EMCLI:


oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ emcli login -username=sysman

Enter password


Login successful



3. Synchronize EMCLI:


oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ emcli sync

Synchronized successfully



4. List the platforms for which the management agent software is available on the OMS host:


oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ emcli get_supported_platforms

-----------------------------------------------

Version = 12.1.0.4.0

Platform = Oracle Solaris on x86-64 (64-bit)

-----------------------------------------------

Platforms list displayed successfully.

oraem@s11node1:/oem/app/oraem/middleware/oms/bin$



5. Download the management agent software to a directory on the OMS host:


Sample output:


oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ echo $TEMP

/oem/app/oraem/tmp

oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ mkdir -p $TEMP/agent12cSolx64


oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ emcli get_agentimage -destination=/oem/app/oraem/tmp/agent12cSolx64 -platform="Oracle Solaris on x86-64 (64-bit)" -version=12.1.0.4.0

 === Partition Detail ===

Space free : 21 GB

Space required : 1 GB

Check the logs at /oem/app/oraem/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2015-02-07_18-56-17-PM.log

Downloading /oem/app/oraem/tmp/agent12cSolx64/12.1.0.4.0_AgentCore_267.zip

File saved as /oem/app/oraem/tmp/agent12cSolx64/12.1.0.4.0_AgentCore_267.zip

Downloading /oem/app/oraem/tmp/agent12cSolx64/12.1.0.4.0_PluginsOneoffs_267.zip

File saved as /oem/app/oraem/tmp/agent12cSolx64/12.1.0.4.0_PluginsOneoffs_267.zip

Downloading /oem/app/oraem/tmp/agent12cSolx64/unzip

File saved as /oem/app/oraem/tmp/agent12cSolx64/unzip

Agent Image Download completed successfully.

oraem@s11node1:/oem/app/oraem/middleware/oms/bin$


6. The command downloads the core management agent software to the destination directory (/home/oracle).

For example, for Linux x86-64, you will see the file 12.1.0.2.0_AgentCore_226.zip.


oraem@s11node1:/oem/app/oraem/middleware/oms/bin$ ls -l $TEMP/agent12cSolx64

total 509760

-rw-r--r--   1 oraem    orainst  260854714 Feb  7 18:57 12.1.0.4.0_AgentCore_267.zip

oraem@s11node1:/oem/app/oraem/middleware/oms/bin$



7. Transfer this file to the target server:


oraem@s11node1:~$ ssh oradb@pacific


pacific:oradb> mkdir -p $ORACLE_BASE/agentSetup

pacific:oradb> echo $ORACLE_BASE

/dsk0/orabin/11gR2

pacific:oradb> exit


oraem@s11node1:~$ cd /oem/app/oraem/tmp/agent12cSolx64

oraem@s11node1:/oem/app/oraem/tmp/agent12cSolx64$ ls

12.1.0.4.0_AgentCore_267.zip

oraem@s11node1:/oem/app/oraem/tmp/agent12cSolx64$ scp 12.1.0.4.0_AgentCore_267.zip oradb@pacific:/dsk0/orabin/11gR2/agentSetup

Password:

12.1.0.4.0_AgentCore 100% |*****************************|   248 MB    00:08    

oraem@s11node1:/oem/app/oraem/tmp/agent12cSolx64$



8. Log in to the target server and extract the zip file:


pacific:oradb> cd $ORACLE_BASE/agentSetup

pacific:oradb> ls

12.1.0.4.0_AgentCore_267.zip

pacific:oradb> unzip 12.1.0.4.0_AgentCore_267.zip -d setup

Archive:  12.1.0.4.0_AgentCore_267.zip

  inflating: setup/unzip             

  inflating: setup/agentDeploy.sh    

  inflating: setup/agentimage.properties  

  inflating: setup/agent.rsp         

 extracting: setup/agentcoreimage.zip  

 extracting: setup/12.1.0.4.0_PluginsOneoffs_267.zip  

pacific:oradb>



9. Enter the agentsetup directory and edit the agent response file:


@the OMS server, take note of the ports assigned for agent:

oraem@s11node1:/oem/app/oraem/tmp/agent12cSolx64$ cat /oem/app/oraem/middleware/oms/install/portlist.ini

Enterprise Manager Upload Http Port=4889

Enterprise Manager Upload Http SSL Port=1159

Enterprise Manager Central Console Http SSL Port=7799

Node Manager Http SSL Port=7401

Managed Server Http Port=7201

Enterprise Manager Central Console Http Port=7788

Oracle Management Agent Port=3872

Admin Server Http SSL Port=7101

Managed Server Http SSL Port=7301

oraem@s11node1:/oem/app/oraem/tmp/agent12cSolx64$


pacific:oradb> cd /dsk0/orabin/11gR2/agentSetup/setup

pacific:oradb> ls *.rsp

agent.rsp*

pacific:oradb> vi agent.rsp


10. Enter the following values:


OMS_HOST=oem-vip.vlabs.net

EM_UPLOAD_PORT=4889

AGENT_REGISTRATION_PASSWORD=oracle123

AGENT_INSTANCE_HOME=/dsk0/orabin/11gR2/agent12c/agent_inst

AGENT_PORT=3872

b_startAgent=true

ORACLE_HOSTNAME=pacific.vlabs.net

s_agentHomeName="agent12cR4"



11. Run the agentDeploy.sh script to deploy the agent:


Syntax:


mkdir -p /dsk0/orabin/11gR2/agent12c

./agentDeploy.sh RESPONSE_FILE=/dsk0/orabin/11gR2/agentSetup/setup/agent.rsp AGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c


Sample output:


pacific:oradb> mkdir -p /dsk0/orabin/11gR2/agent12c

pacific:oradb> cd /dsk0/orabin/11gR2/agentSetup/setup

pacific:oradb> ./agentDeploy.sh RESPONSE_FILE=/dsk0/orabin/11gR2/agentSetup/setup/agent.rsp AGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c

 

-e Validating the OMS_HOST & EM_UPLOAD_PORT

Executing command : /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jdk/bin/java -classpath /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jlib/agentInstaller.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0 /dsk0/orabin/11gR2/agentSetup/setup /dsk0/orabin/11gR2/agent12c -prereq


Validating oms host & port with url: http://oem-vip.vlabs.net:4889/empbs/genwallet

Validating oms host & port with url: https://oem-vip.vlabs.net:4889/empbs/genwallet

Return status:0-oms http port is passed

Unzipping the agentcoreimage.zip to /dsk0/orabin/11gR2/agent12c ....

12.1.0.4.0_PluginsOneoffs_267.zip

Executing command : /dsk0/orabin/11gR2/agentSetup/setup/unzip -o /dsk0/orabin/11gR2/agentSetup/setup/12.1.0.4.0_PluginsOneoffs_267.zip -d /dsk0/orabin/11gR2/agent12c

Executing command : /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jdk/bin/java  -d64 -classpath /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/OraInstaller.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/xmlparserv2.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/srvm.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/emCfg.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jlib/agentInstaller.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0 /dsk0/orabin/11gR2/agentSetup/setup /dsk0/orabin/11gR2/agent12c /dsk0/orabin/11gR2/agent12c AGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c



Executing agent install prereqs...

Executing command: /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/bin/runInstaller -debug -ignoreSysPrereqs   -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prereqlogloc /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/prereqs  -J-DORACLE_HOSTNAME=pacific.vlabs.net -J-DAGENT_PORT=3872 -J-DAGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c

ERROR: Agent Install Prereqs failed


Agent Deploy Log Location:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy/agentDeploy_2015-02-07_21-55-00-PM.log


pacific:oradb>


pacific:oradb> ls

agentDeploy_2015-02-07_21-54-48-PM.log

agentDeploy_2015-02-07_21-55-00-PM.log

logs/

prereq2015-02-07_09-55-00PM.err

prereq2015-02-07_09-55-00PM.log

prereq2015-02-07_09-55-00PM.out

results/

pacific:oradb> cd /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy/

pacific:oradb> cat prereq2015-02-07_09-55-00PM.err

/etc/inittab does not seem to contain default runlevel information.

pacific:oradb> cat prereq2015-02-07_09-55-00PM.log

...

Checking for SUNWi1cs; Not found.       Failed <<<<

Checking for SUNWi15cs; Not found.      Failed <<<<


As root,


pkgadd -d /cdrom/sol_10_113_x86/Solaris_10/Product SUNWi1cs SUNWi15cs



Let's try again:


pacific:oradb> rm -rf /dsk0/orabin/11gR2/agent12c

pacific:oradb> mkdir -p /dsk0/orabin/11gR2/agent12c

pacific:oradb> cd /dsk0/orabin/11gR2/agentSetup/setup

pacific:oradb> ./agentDeploy.sh RESPONSE_FILE=/dsk0/orabin/11gR2/agentSetup/setup/agent.rsp AGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c


-e Validating the OMS_HOST & EM_UPLOAD_PORT

Executing command : /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jdk/bin/java -classpath /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jlib/agentInstaller.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0 /dsk0/orabin/11gR2/agentSetup/setup /dsk0/orabin/11gR2/agent12c -prereq


Validating oms host & port with url: http://oem-vip.vlabs.net:4889/empbs/genwallet

Validating oms host & port with url: https://oem-vip.vlabs.net:4889/empbs/genwallet

Return status:0-oms http port is passed

Unzipping the agentcoreimage.zip to /dsk0/orabin/11gR2/agent12c ....

12.1.0.4.0_PluginsOneoffs_267.zip

Executing command : /dsk0/orabin/11gR2/agentSetup/setup/unzip -o /dsk0/orabin/11gR2/agentSetup/setup/12.1.0.4.0_PluginsOneoffs_267.zip -d /dsk0/orabin/11gR2/agent12c

Executing command : /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jdk/bin/java  -d64 -classpath /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/OraInstaller.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/xmlparserv2.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/srvm.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/emCfg.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/jlib/agentInstaller.jar:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0 /dsk0/orabin/11gR2/agentSetup/setup /dsk0/orabin/11gR2/agent12c /dsk0/orabin/11gR2/agent12c AGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c



Executing agent install prereqs...

Executing command: /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/bin/runInstaller -debug -ignoreSysPrereqs   -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prereqlogloc /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/prereqs  -J-DORACLE_HOSTNAME=pacific.vlabs.net -J-DAGENT_PORT=3872 -J-DAGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c


Agent install prereqs completed successfully


Cloning the agent home...

Executing command: /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/bin/runInstaller -debug -ignoreSysPrereqs   -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0 -responseFile /dsk0/orabin/11gR2/agentSetup/setup/agent.rsp  AGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c RESPONSE_FILE=/dsk0/orabin/11gR2/agentSetup/setup/agent.rsp AGENT_BASE_DIR=/dsk0/orabin/11gR2/agent12c -noconfig  ORACLE_HOME_NAME=agent12cR4 -force b_noUpgrade=true


Cloning of agent home completed successfully


Attaching sbin home...

Executing command: /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/bin/runInstaller -debug -ignoreSysPrereqs   -attachHome -waitForCompletion -nowait ORACLE_HOME=/dsk0/orabin/11gR2/agent12c/sbin ORACLE_HOME_NAME=sbin12c1 -force


Attach home for sbin home completed successfully.


Updating home dependencies...

Executing command: /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/bin/runInstaller -debug -ignoreSysPrereqs   -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={/dsk0/orabin/11gR2/agent12c/sbin:/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0} -invPtrLoc /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oraInst.loc -force


Update home dependency completed successfully.

Executing command: /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/oui/bin/runConfig.sh ORACLE_HOME=/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0 RESPONSE_FILE=/dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true

Agent Configuration completed successfully


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

#!/bin/sh

#Root script to run

 /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.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: /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy/agentDeploy_2015-02-07_22-55-35-PM.log

Agent deployment completed successfully.

pacific:oradb>




12. After the script successfully completes, open a new terminal window, log in as ROOT, and run the configuration script (the location of the script is written in the output of agentDeploy.sh):


Sample output:


# /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/root.sh

Finished product-specific root actions.

/var/opt/oracle exist


Creating /var/opt/oracle/oragchomelist file...

#



13. Check the agent’s status:


pacific:oradb> /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0/bin/emctl status agent

Oracle Enterprise Manager Cloud Control 12c Release 4  

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

---------------------------------------------------------------

Agent Version          : 12.1.0.4.0

OMS Version            : 12.1.0.4.0

Protocol Version       : 12.1.0.1.0

Agent Home             : /dsk0/orabin/11gR2/agent12c

Agent Log Directory    : /dsk0/orabin/11gR2/agent12c/sysman/log

Agent Binaries         : /dsk0/orabin/11gR2/agent12c/core/12.1.0.4.0

Agent Process ID       : 8131

Parent Process ID      : 8124

Agent URL              : https://pacific.vlabs.net:3872/emd/main/

Local Agent URL in NAT : https://pacific.vlabs.net:3872/emd/main/

Repository URL         : https://oem-vip.vlabs.net:1159/empbs/upload

Started at             : 2015-02-07 22:56:45

Started by user        : oradb

Operating System       : SunOS version 5.10 (amd64)

Last Reload            : (none)

Last successful upload                       : 2015-02-07 22:58:02

Last attempted upload                        : 2015-02-07 22:58:02

Total Megabytes of XML files uploaded so far : 0.26

Number of XML files pending upload           : 0

Size of XML files pending upload(MB)         : 0

Available disk space on upload filesystem    : 32.92%

Collection Status                            : Collections enabled

Heartbeat Status                             : Ok

Last attempted heartbeat to OMS              : 2015-02-07 23:01:51

Last successful heartbeat to OMS             : 2015-02-07 23:01:51

Next scheduled heartbeat to OMS              : 2015-02-07 23:02:51


---------------------------------------------------------------

Agent is Running and Ready

pacific:oradb>



14. After deploying agents, you may discover targets (such as Oracle Database, Middleware, and applications) on hosts.




USING AGENT PULL SCRIPT


Example Agent Pull at the OMRDB:

There 3 ways to download the Agent Pull scirpt: Using wget, curl, or through the browser.


USING WGET

oraoem@pacific:/oem/app/oraem$ which wget

/usr/bin/wget

oraoem@pacific:/oem/app/oraem$


wget https://oem-vip.vlabs.net:7799/em/install/getAgentImage --no-check-certificate


USING CURL

pacific:oradb> which curl

/opt/csw/bin/curl

pacific:oradb>


curl "https://oem-vip.vlabs.net:7799/em/install/getAgentImage" --insecure -o AgentPull.sh


pacific:oradb> curl "https://oem-vip.vlabs.net:7799/em/install/getAgentImage" --insecure -o AgentPull.sh

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 21161  100 21161    0     0  60408      0 --:--:-- --:--:-- --:--:-- 60807

pacific:oradb>



USING BROWSER


https://oem-vip.vlabs.net:7799/em/install/getAgentImage

Save file as AgentPull.sh

Prev< 1 2 3 4 5 6 7 8 >Next

Add execute permissions,

  chmod a+x agentPull.sh

  

Check the agents per platform available for download  

./AgentPull.sh -showPlatforms


pacific:oradb> ./AgentPull.sh -showPlatforms


-e

Platforms       Version

Microsoft Windows x64 (64-bit)  12.1.0.4.0

Oracle Solaris on x86-64 (64-bit)       12.1.0.4.0

Linux x86-64    12.1.0.4.0

Oracle Solaris on SPARC (64-bit)        12.1.0.4.0

HP-UX Itanium   12.1.0.4.0


pacific:oradb>


Create RSP file for the AgentPull script:

>>>file: agent.properties


LOGIN_USER=sysman

LOGIN_PASSWORD=oracle123

PLATFORM="Oracle Solaris on x86-64 (64-bit)"

VERSION=12.1.0.4.0

AGENT_REGISTRATION_PASSWORD=oracle123

ORACLE_HOSTNAME=pacific.vlabs.net


NOTE: The Oracle doc has indicated that we should not name the response file as agent.rsp for the AgentPull script.


Run The AgentPull script with settings for the agent base directory:


./AgentPull.sh RSPFILE_LOC=/dsk0/orabin/oem/install/agentpull/agent.properties AGENT_BASE_DIR=/dsk0/orabin/oem/agent12c