OEM 12c Cloud Control – Agent Silent installation using RPM
In the previous article we have seen how to install OEM agent in silent mode using a response file. In the present articl, we shall look at an alternative way of silent installation of agent using RPM.
Environment details:
OMS Hostname: ora1-2 Agent to be deployed on : ora1-5
Below is the detail of the OMS status. This is checked from the OMS server.
[oracle@ora1-2 bin]$ ./emctl status oms -details Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root (SYSMAN) Password : SYSMAN password provided is invalid [oracle@ora1-2 bin]$ ./emctl status oms -details Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root (SYSMAN) Password : Console Server Host : ora1-2.mydomain HTTP Console Port : 7788 HTTPS Console Port : 7802 HTTP Upload Port : 4889 HTTPS Upload Port : 4903 EM Instance Home : /u01/app/oracle/gc_inst1/em/EMGC_OMS1 OMS Log Directory Location : /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/log OMS is not configured with SLB or virtual hostname Agent Upload is locked. OMS Console is locked. Active CA ID: 1 Console URL: https://ora1-2.mydomain:7802/em Upload URL: https://ora1-2.mydomain:4903/empbs/upload WLS Domain Information Domain Name : GCDomain Admin Server Host : ora1-2.mydomain Admin Server HTTPS Port: 7102 Admin Server is RUNNING Oracle Management Server Information Managed Server Instance Name: EMGC_OMS1 Oracle Management Server Instance Host: ora1-2.mydomain WebTier is Up Oracle Management Server is Up BI Publisher is not configured to run on this host. [oracle@ora1-2 bin]$
Login to the “Enterprise Manager Command Line Interface” client from the OMS host with username as SYSMAN and it’s password.
[oracle@ora1-2 ~]$ cd /u01/app/oracle/oms12c/oms/bin [oracle@ora1-2 bin]$ ./emcli login -username=sysman -password=Micromot10n Login successful [oracle@ora1-2 bin]$
Once logged in successfully, synchronize the EMCLI.
[oracle@ora1-2 bin]$ ./emcli sync Synchronized successfully [oracle@ora1-2 bin]$
Identify the list of Operating Systems for which the Agent software is available. This can be obtained by running the “get_supported_platforms” from the EMCLI interface.
[oracle@ora1-2 bin]$ ./emcli get_supported_platforms ----------------------------------------------- Version = 12.1.0.4.0 Platform = Linux x86-64 ----------------------------------------------- Platforms list displayed successfully. [oracle@ora1-2 bin]$
Get the Agent “.rpm” for the required Operating system by specifying the “platform” option and the relevant agent version by passing “version” option. This will be saved on to the OMS host at the location specifed under the “destination” option.
Here, I’m getting the “.rpm” for “Linux x86-64” platform and of version “12.1.0.4.0” as stated above and saving it to “/u03/agent_software” location on the OMS host.
As a pre-requisite, make sure that the directory “/usr/lib/oracle” exists and has write permissions on the OMS server. Else the “get_agentimage_rpm” command might fail as shown below.
[oracle@ora1-2 bin]$ ./emcli get_agentimage_rpm -destination=/u03/agent_software -platform="Linux x86-64" -version="12.1.0.4.0" Platform:Linux x86-64 Destination:/u03/agent_software Exalogic:false Checking for disk space requirements... === Partition Detail === Space free : 15 GB Space required : 1 GB Space check pereq has failed. Make sure that you have 2 GB of space on /usr/lib/oracle directory [oracle@ora1-2 bin]$
[oracle@ora1-2 bin]$ su - Password: [root@ora1-2 ~]# mkdir -p /usr/lib/oracle [root@ora1-2 ~]# [root@ora1-2 ~]# chmod 777 /usr/lib/oracle
Retry to get the agent image rpm after creating “/usr/lib/oracle” directory with write permission.
[oracle@ora1-2 bin]$ ./emcli get_agentimage_rpm -destination=/u03/agent_software -platform="Linux x86-64" -version="12.1.0.4.0" Platform:Linux x86-64 Destination:/u03/agent_software Exalogic:false Checking for disk space requirements... === Partition Detail === Space free : 15 GB Space required : 1 GB RPM Creation in progress ... Check the logs at /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_rpm_2016-05-12_12-29-54-PM.log This operation may take few minutes, please wait ... Agent image to rpm conversion completed successfully
Copy this downloaded AgentImage RPM on to the target server where the Agent needs to be installed. In my case, it’s host ora1-5 where the agent will be installed.
[oracle@ora1-2 agent_software]$ pwd /u03/agent_software [oracle@ora1-2 agent_software]$ scp oracle-agt-12.1.0.4.0-1.0.x86_64.rpm oracle@ora1-5:/u03/agent_software/ The authenticity of host 'ora1-5 (192.168.56.107)' can't be established. RSA key fingerprint is cb:5b:3b:bd:51:e9:86:77:e8:f5:8f:be:59:f9:fa:73. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'ora1-5,192.168.56.107' (RSA) to the list of known hosts. oracle@ora1-5's password: oracle-agt-12.1.0.4.0-1.0.x86_64.rpm 100% 224MB 11.2MB/s 00:20 [oracle@ora1-2 agent_software]$
On the target server, as ROOT user, install the copied agent-image rpm
[oracle@ora1-5 ~]$ cd /u03/agent_software/ [oracle@ora1-5 agent_software]$ ls -lrt total 229736 -rw-r-----. 1 oracle oinstall 235009376 May 13 10:23 oracle-agt-12.1.0.4.0-1.0.x86_64.rpm [oracle@ora1-5 agent_software]$
[root@ora1-5 ~]# rpm -Uivh /u03/agent_software/oracle-agt-12.1.0.4.0-1.0.x86_64.rpm Preparing... ########################################### [100%] Running the prereq 1:oracle-agt ########################################### [100%] Agent RPM installation is completed successfully. Now to configure the agent follow the below steps: 1. Edit the properties file: /usr/lib/oracle/agent/agent.properties with the correct values 2. Execute the script /etc/init.d/oracle-agt RESPONSE_FILE=/usr/lib/oracle/agent/agent.properties [root@ora1-5 ~]#
Please note that when a “.rpm” file is used to install the agent, the default agent base directory location is “/usr/lib/oracle/agent”. So before installing the rpm, make sure the directory “/usr/lib/oracle” exists with write permissions on the target server where the agent will be installed.
If the agent needs to be installed on to a custom agent base directory location, then specify the “–relocate” option while installing the copied “.rpm” file.
For example:
rpm -Uivh --relocate /usr/lib/oracle/agent=<your_custom_agent_base_directory_location> <copied_rpm_file_with_complete_path> rpm -Uivh --relocate /usr/lib/oracle/agent=/u01/app/oracle/agent /u03/agent_software/oracle-agt-12.1.0.4.0-1.0.x86_64.rpm
Also note that, when an agent is installed using rpm file, the inventory location is the AGENT_BASE_DIR/oraInventory. So, by default the inventory location will be “/usr/lib/oracle/agent/oraInventory”.
Once the agent rpm is installed successfully, we would be provided with sequence of steps to be followed to complete the cnfiguration.
Edit the “/usr/lib/oracle/agent/agent.properties” file with appropriate values such as OMS Hostname, OMS Port number (upload port number to communicate with OMS), Agent registration password (used to secure the agent), Agent username (username with which the agent needs to be installed), agent group (group to which the agent user belongs), agent port (optional – port where agent process will be started), hostname where you want the agent to be installed.
[root@ora1-5 ~]# cat /usr/lib/oracle/agent/agent.properties #------------------------------------------------------------------------------- #OMS_HOST:<String> OMS host info required to connect to OMS #OMS_PORT:<String> OMS port info required to connect to OMS #AGENT_REGISTRATION_PASSWORD:<String> Agent Registration Password needed to # establish a secure connection to the OMS. #------------------------------------------------------------------------------- OMS_HOST=ora1-2.mydomain OMS_PORT=4903 AGENT_REGISTRATION_PASSWORD=oracle123 #------------------------------------------------------------------------------- #AGENT_USERNAME:<String> User name with which the agent should be installed. #AGENT_GROUP:<String> Group to which the agent user belogs. #AGENT_PORT:<String> Port in which the agent process will come up. #------------------------------------------------------------------------------- AGENT_USERNAME=oracle AGENT_GROUP=oinstall #AGENT_PORT=3873 #------------------------------------------------------------------------------- #ORACLE_HOSTNAME:<String> Virtual hostname where the agent is deployed. #Example: ORACLE_HOSTNAME=hostname.domain #------------------------------------------------------------------------------- ORACLE_HOSTNAME=ora1-5.mydomain
As ROOT user using the above edited properties file, run the below command to cofigure the agent as directed after the agent rpm installation.
[root@ora1-5 ~]# /etc/init.d/oracle-agt RESPONSE_FILE=/usr/lib/oracle/agent/agent.properties /usr/lib/oracle/agent/parameter.lst Response File:/usr/lib/oracle/agent/agent.properties Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. Actual 10239 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-05-13_10-29-42AM. Please wait ... LD_LIBRARY_PATH environment variable : ------------------------------------------------------- Total args: 31 Command line argument array elements ... Arg:0:/tmp/OraInstall2016-05-13_10-29-42AM/jre/bin/java: Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2016-05-13_10-29-42AM/oui/lib/linux64: Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2016-05-13_10-29-42AM/oui: Arg:3:-Doracle.installer.bootstrap=TRUE: Arg:4:-Doracle.installer.startup_location=/usr/lib/oracle/agent/core/12.1.0.4.0/oui/bin: Arg:5:-Doracle.installer.jre_loc=../../jre: Arg:6:-Doracle.installer.nlsEnabled="TRUE": Arg:7:-Doracle.installer.prereqConfigLoc= : Arg:8:-Doracle.installer.unixVersion=2.6.32-71.el6.x86_64: Arg:9:-mx160m: Arg:10:-cp: Arg:11:/tmp/OraInstall2016-05-13_10-29-42AM::/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/oneclick.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/share.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/emocmutl.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/emCfg.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/jsch.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/ssh.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/http_client.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/OraSuiteInstaller.jar:/tmp/OraInstall2016-05-13_10-29-42AM/OPatch/jlib/opatch.jar:/tmp/OraInstall2016-05-13_10-29-42AM/OPatch/jlib/opatchactions.jar:/tmp/OraInstall2016-05-13_10-29-42AM/OPatch/jlib/opatchprereq.jar:/tmp/OraInstall2016-05-13_10-29-42AM/OPatch/jlib/opatchutil.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstImages.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/help4.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/help4-nls.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/ewt3.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/swingaccess.jar::/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/jewt4.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/ojmisc.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/xml.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/srvm.jar:/tmp/OraInstall2016-05-13_10-29-42AM/oui/jlib/classes12.jar: Arg:12:oracle.sysman.oii.oiic.OiicInstaller: Arg:13:-scratchPath: Arg:14:/tmp/OraInstall2016-05-13_10-29-42AM: Arg:15:-sourceType: Arg:16:network: Arg:17:-timestamp: Arg:18:2016-05-13_10-29-42AM: Arg:19:-clone: Arg:20:-forceClone: Arg:21:-force: Arg:22:-silent: Arg:23:ORACLE_HOME=/usr/lib/oracle/agent/core/12.1.0.4.0: Arg:24:ORACLE_HOME_NAME=agent12c0: Arg:25:-waitForCompletion: Arg:26:-debug: Arg:27:OMS_HOST=ora1-2.mydomain: Arg:28:EM_UPLOAD_PORT=4903: Arg:29:AGENT_BASE_DIR=/usr/lib/oracle/agent: Arg:30:EM_PROTOCOL=https: ------------------------------------------------------- Initializing Java Virtual Machine from /tmp/OraInstall2016-05-13_10-29-42AM/jre/bin/java. Please wait... Oracle Universal Installer, Version 11.1.0.12.0 Production Copyright (C) 1999, 2014, Oracle. All rights reserved. You can find the log of this install session at: /u01/app/oraInventory/logs/cloneActions2016-05-13_10-29-42AM.log .................................................................................................... 100% Done. Installation in progress (Friday, May 13, 2016 10:30:06 AM IST) ................................................... 51% Done. Install successful Linking in progress (Friday, May 13, 2016 10:30:15 AM IST) Link successful Setup in progress (Friday, May 13, 2016 10:30:15 AM IST) ............................... 100% Done. Setup successful End of install phases.(Friday, May 13, 2016 10:30:29 AM IST) The cloning of agent12c0 was successful. Please check '/u01/app/oraInventory/logs/cloneActions2016-05-13_10-29-42AM.log' for more details. copying /u01/app/oraInventory/logs/silentInstall2016-05-13_10-29-42AM.log to /usr/lib/oracle/agent/core/12.1.0.4.0/cfgtoollogs/oui/silentInstall2016-05-13_10-29-42AM.log copying /u01/app/oraInventory/logs/cloneActions2016-05-13_10-29-42AM.log to /usr/lib/oracle/agent/core/12.1.0.4.0/cfgtoollogs/oui/cloneActions2016-05-13_10-29-42AM.log copying /u01/app/oraInventory/logs/oraInstall2016-05-13_10-29-42AM.err to /usr/lib/oracle/agent/core/12.1.0.4.0/cfgtoollogs/oui/oraInstall2016-05-13_10-29-42AM.err copying /u01/app/oraInventory/logs/oraInstall2016-05-13_10-29-42AM.out to /usr/lib/oracle/agent/core/12.1.0.4.0/cfgtoollogs/oui/oraInstall2016-05-13_10-29-42AM.out Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. Actual 10239 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-05-13_10-30-30AM. Please wait ... LD_LIBRARY_PATH environment variable : ------------------------------------------------------- Total args: 26 Command line argument array elements ... Arg:0:/tmp/OraInstall2016-05-13_10-30-30AM/jre/bin/java: Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2016-05-13_10-30-30AM/oui/lib/linux64: Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2016-05-13_10-30-30AM/oui: Arg:3:-Doracle.installer.bootstrap=TRUE: Arg:4:-Doracle.installer.startup_location=/usr/lib/oracle/agent/core/12.1.0.4.0/oui/bin: Arg:5:-Doracle.installer.jre_loc=../../jre: Arg:6:-Doracle.installer.nlsEnabled="TRUE": Arg:7:-Doracle.installer.prereqConfigLoc= : Arg:8:-Doracle.installer.unixVersion=2.6.32-71.el6.x86_64: Arg:9:-mx160m: Arg:10:-cp: Arg:11:/tmp/OraInstall2016-05-13_10-30-30AM::/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/oneclick.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/share.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/emocmutl.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/emCfg.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/jsch.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/ssh.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/http_client.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/OraSuiteInstaller.jar:/tmp/OraInstall2016-05-13_10-30-30AM/OPatch/jlib/opatch.jar:/tmp/OraInstall2016-05-13_10-30-30AM/OPatch/jlib/opatchactions.jar:/tmp/OraInstall2016-05-13_10-30-30AM/OPatch/jlib/opatchprereq.jar:/tmp/OraInstall2016-05-13_10-30-30AM/OPatch/jlib/opatchutil.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstImages.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/help4.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/help4-nls.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/ewt3.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/swingaccess.jar::/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/jewt4.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/ojmisc.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/xml.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/srvm.jar:/tmp/OraInstall2016-05-13_10-30-30AM/oui/jlib/classes12.jar: Arg:12:oracle.sysman.oii.oiic.OiicAttachHome: Arg:13:-scratchPath: Arg:14:/tmp/OraInstall2016-05-13_10-30-30AM: Arg:15:-sourceType: Arg:16:network: Arg:17:-timestamp: Arg:18:2016-05-13_10-30-30AM: Arg:19:-attachHome: Arg:20:ORACLE_HOME=/usr/lib/oracle/agent/sbin: Arg:21:ORACLE_HOME_NAME=sbin12c0: Arg:22:-waitForCompletion: Arg:23:-debug: Arg:24:-invPtrLoc: Arg:25:/usr/lib/oracle/agent/core/12.1.0.4.0/oraInst.loc: ------------------------------------------------------- Initializing Java Virtual Machine from /tmp/OraInstall2016-05-13_10-30-30AM/jre/bin/java. Please wait... The inventory pointer is located at /usr/lib/oracle/agent/core/12.1.0.4.0/oraInst.loc 'AttachHome' was successful. Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. Actual 10239 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-05-13_10-30-34AM. Please wait ... LD_LIBRARY_PATH environment variable : ------------------------------------------------------- Total args: 25 Command line argument array elements ... Arg:0:/tmp/OraInstall2016-05-13_10-30-34AM/jre/bin/java: Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2016-05-13_10-30-34AM/oui/lib/linux64: Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2016-05-13_10-30-34AM/oui: Arg:3:-Doracle.installer.bootstrap=TRUE: Arg:4:-Doracle.installer.startup_location=/usr/lib/oracle/agent/core/12.1.0.4.0/oui/bin: Arg:5:-Doracle.installer.jre_loc=../../jre: Arg:6:-Doracle.installer.nlsEnabled="TRUE": Arg:7:-Doracle.installer.prereqConfigLoc= : Arg:8:-Doracle.installer.unixVersion=2.6.32-71.el6.x86_64: Arg:9:-mx160m: Arg:10:-cp: Arg:11:/tmp/OraInstall2016-05-13_10-30-34AM::/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/oneclick.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/share.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/emocmutl.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/emCfg.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/jsch.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/ssh.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/http_client.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/OraSuiteInstaller.jar:/tmp/OraInstall2016-05-13_10-30-34AM/OPatch/jlib/opatch.jar:/tmp/OraInstall2016-05-13_10-30-34AM/OPatch/jlib/opatchactions.jar:/tmp/OraInstall2016-05-13_10-30-34AM/OPatch/jlib/opatchprereq.jar:/tmp/OraInstall2016-05-13_10-30-34AM/OPatch/jlib/opatchutil.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstImages.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/help4.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/help4-nls.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/ewt3.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/swingaccess.jar::/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/jewt4.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/ojmisc.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/xml.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/srvm.jar:/tmp/OraInstall2016-05-13_10-30-34AM/oui/jlib/classes12.jar: Arg:12:oracle.sysman.oii.oiic.OiicUpdateHomeDeps: Arg:13:-scratchPath: Arg:14:/tmp/OraInstall2016-05-13_10-30-34AM: Arg:15:-sourceType: Arg:16:network: Arg:17:-timestamp: Arg:18:2016-05-13_10-30-34AM: Arg:19:-updateHomeDeps: Arg:20:HOME_DEPENDENCY_LIST={/usr/lib/oracle/agent/sbin:/usr/lib/oracle/agent/core/12.1.0.4.0}: Arg:21:-waitForCompletion: Arg:22:-debug: Arg:23:-invPtrLoc: Arg:24:/usr/lib/oracle/agent/core/12.1.0.4.0/oraInst.loc: ------------------------------------------------------- Initializing Java Virtual Machine from /tmp/OraInstall2016-05-13_10-30-34AM/jre/bin/java. Please wait... The inventory pointer is located at /usr/lib/oracle/agent/core/12.1.0.4.0/oraInst.loc 'UpdateHomeDeps' was successful. Finished product-specific root actions. /etc exist Creating /etc/oragchomelist file... /usr/lib/oracle/agent/core/12.1.0.4.0 Setting the invPtrLoc to /usr/lib/oracle/agent/core/12.1.0.4.0/oraInst.loc perform - mode is starting for action: configure ** Agent Port Check completed successfully.** perform - mode finished for action: configure You can see the log file: /usr/lib/oracle/agent/core/12.1.0.4.0/cfgtoollogs/oui/configActions2016-05-13_10-30-39-AM.log Agent Configuration completed successfully [root@ora1-5 ~]#
Once the configuration is a success, check the agent status.
[oracle@ora1-5 ~]$ [oracle@ora1-5 ~]$ cd /usr/lib/oracle/agent/agent_inst/bin [oracle@ora1-5 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 : /usr/lib/oracle/agent/agent_inst Agent Log Directory : /usr/lib/oracle/agent/agent_inst/sysman/log Agent Binaries : /usr/lib/oracle/agent/core/12.1.0.4.0 Agent Process ID : 20280 Parent Process ID : 20238 Agent URL : https://ora1-5.mydomain:3872/emd/main/ Local Agent URL in NAT : https://ora1-5.mydomain:3872/emd/main/ Repository URL : https://ora1-2.mydomain:4903/empbs/upload Started at : 2016-05-13 10:32:33 Started by user : oracle Operating System : Linux version 2.6.32-71.el6.x86_64 (amd64) Last Reload : (none) Last successful upload : 2016-05-13 10:34:25 Last attempted upload : 2016-05-13 10:34:33 Total Megabytes of XML files uploaded so far : 0.33 Number of XML files pending upload : 0 Size of XML files pending upload(MB) : 0 Available disk space on upload filesystem : 86.76% Collection Status : Collections enabled Heartbeat Status : Ok Last attempted heartbeat to OMS : 2016-05-13 10:35:44 Last successful heartbeat to OMS : 2016-05-13 10:35:44 Next scheduled heartbeat to OMS : 2016-05-13 10:36:44 --------------------------------------------------------------- Agent is Running and Ready [oracle@ora1-5 bin]$
COPYRIGHT
© Shivananda Rao P, 2012 to 2018. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Shivananda Rao and http://www.shivanandarao-oracle.com with appropriate and specific direction to the original content.
DISCLAIMER
The views expressed here are my own and do not necessarily reflect the views of any other individual, business entity, or organization. The views expressed by visitors on this blog are theirs solely and may not reflect mine
Leave a Reply