In this post we will see how to install OEM agent 13c on any target host.
My OMS server host name : oemhost ( oemhost.oracle.com)
My target host is here : example
Step:1 - Find your supported platform details and OMS version
[oracle@oemhost bin]$ pwd
/u01/app/OEM/Middleware13c/bin
[oracle@oemhost bin]$ ./emcli login -username=gmohapatra
Enter password :
Login successful
[oracle@oemhost bin]$ ./emcli sync
Synchronized successfully
[oracle@oemhost bin]$ ./emcli get_supported_platforms
-----------------------------------------------
Version = 13.2.0.0.0
Platform = Linux x86-64
-----------------------------------------------
Version = 13.2.0.0.0
Platform = Microsoft Windows x64 (64-bit)
-----------------------------------------------
Version = 12.1.0.4.0
Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.
[oracle@oemhost bin]$
Step:2 - Create agent image. You can create in your OMS and move to target host or you can install emcli client on target host and run same installation steps:
In OMS server downloaded the agent for the platform.
[oracle@oemhost bin]$ ./emcli get_agentimage -destination=/tmp/agentinstaller -platform="Linux x86-64" -version="13.2.0.0.0"
=== Partition Detail ===
Space free : 4 GB
Space required : 1 GB
Check the logs at /u01/app/OEM/gc_inst1/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2018-01-08_14-33-00-PM.log
Downloading /tmp/agentinstaller/13.2.0.0.0_AgentCore_226.zip
File saved as /tmp/agentinstaller/13.2.0.0.0_AgentCore_226.zip
Downloading /tmp/agentinstaller/13.2.0.0.0_Plugins_226.zip
File saved as /tmp/agentinstaller/13.2.0.0.0_Plugins_226.zip
Downloading /tmp/agentinstaller/unzip
File saved as /tmp/agentinstaller/unzip
Executing command: /tmp/agentinstaller/unzip /tmp/agentinstaller/13.2.0.0.0_Plugins_226.zip -d /tmp/agentinstaller
Exit status is:0
Agent Image Download completed successfully.
[oracle@oemhost bin]$
Step-3: Now let’s scp the software to our target server or Transfer it and unzip it. Then go to the installer location. Then run below command.
$./agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/product/agent13c \
-ignorePrereqs \
-invPtrLoc /u01/app/OraInventory/oraInst.loc \
AGENT_PORT=3872 \
EM_UPLOAD_PORT=4903 \
OMS_HOST=oemhost.oracle.com \
ORACLE_HOSTNAME=example \
AGENT_INSTANCE_HOME=/u01/app/oracle/product/agent13c/agent_13.2.0.0.0 \ -- optional
AGENT_REGISTRATION_PASSWORD="world123" \
SCRATCHPATH=/home/oracle/tmp
OR
You can create a .rsp ( response file and run like below):
-- see the values set in agent.rsp response file:
$ cat agent.rsp | grep -v ^# | grep -v ^$
OMS_HOST=oemhost.oracle.com
EM_UPLOAD_PORT=4903
AGENT_REGISTRATION_PASSWORD=world123
AGENT_PORT=3872
EM_INSTALL_TYPE="AGENT"
$/u01/app/oracle/product/agent13c/agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/product/agent13c RESPONSE_FILE=/u01/app/oracle/product/agent13c/agent.rsp
Note:
If you are getting below error then go with recommended fix:
Error msg:
SEVERE:emctl secure agent command has failed with status=1
Agent configuration has failed
Waiting for agent targets to get promoted...
Fix:
Reset the password of "AGENT_REGISTRATION_PASSWORD"
Setup --> Security --> Registration Passwords --> create
Step:4 - Execute the root.sh as given in the log from # ( root) user
# /u01/app/oracle/product/agent13c/agent_13.2.0.0.0/root.sh
Step-5: Check the agent status now:
[oracle@example bin]$ pwd
/u01/app/oracle/product/agent13c/agent_13.2.0.0.0/bin
[oracle@example bin]$
[oracle@example bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.2.0.0.0
OMS Version : 13.2.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/app/oracle/product/agent13c/agent_inst
Agent Log Directory : /u01/app/oracle/product/agent13c/agent_inst/sysman/log
Agent Binaries : /u01/app/oracle/product/agent13c/agent_13.2.0.0.0
Core JAR Location : /u01/app/oracle/product/agent13c/agent_13.2.0.0.0/jlib
Agent Process ID : 29272
Parent Process ID : 29240
Agent URL : https://example.oracle.com:3872/emd/main/
Local Agent URL in NAT : https://example.oracle.com:3872/emd/main/
Repository URL : https://oemhost.oracle.com:4903/empbs/upload
Started at : 2018-01-10 14:15:40
Started by user : oracle
Operating System : Linux version 2.6.32-358.el6.x86_64 (amd64)
Number of Targets : 2
Last Reload : (none)
Last successful upload : 2018-01-10 14:22:31
Last attempted upload : 2018-01-10 14:22:31
Total Megabytes of XML files uploaded so far : 0.28
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 9.78%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2018-01-10 14:23:47
Last successful heartbeat to OMS : 2018-01-10 14:23:47
Next scheduled heartbeat to OMS : 2018-01-10 14:24:47
---------------------------------------------------------------
Agent is Running and Ready
[oracle@example bin]$
My OMS server host name : oemhost ( oemhost.oracle.com)
My target host is here : example
Step:1 - Find your supported platform details and OMS version
[oracle@oemhost bin]$ pwd
/u01/app/OEM/Middleware13c/bin
[oracle@oemhost bin]$ ./emcli login -username=gmohapatra
Enter password :
Login successful
[oracle@oemhost bin]$ ./emcli sync
Synchronized successfully
[oracle@oemhost bin]$ ./emcli get_supported_platforms
-----------------------------------------------
Version = 13.2.0.0.0
Platform = Linux x86-64
-----------------------------------------------
Version = 13.2.0.0.0
Platform = Microsoft Windows x64 (64-bit)
-----------------------------------------------
Version = 12.1.0.4.0
Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.
[oracle@oemhost bin]$
Step:2 - Create agent image. You can create in your OMS and move to target host or you can install emcli client on target host and run same installation steps:
In OMS server downloaded the agent for the platform.
[oracle@oemhost bin]$ ./emcli get_agentimage -destination=/tmp/agentinstaller -platform="Linux x86-64" -version="13.2.0.0.0"
=== Partition Detail ===
Space free : 4 GB
Space required : 1 GB
Check the logs at /u01/app/OEM/gc_inst1/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2018-01-08_14-33-00-PM.log
Downloading /tmp/agentinstaller/13.2.0.0.0_AgentCore_226.zip
File saved as /tmp/agentinstaller/13.2.0.0.0_AgentCore_226.zip
Downloading /tmp/agentinstaller/13.2.0.0.0_Plugins_226.zip
File saved as /tmp/agentinstaller/13.2.0.0.0_Plugins_226.zip
Downloading /tmp/agentinstaller/unzip
File saved as /tmp/agentinstaller/unzip
Executing command: /tmp/agentinstaller/unzip /tmp/agentinstaller/13.2.0.0.0_Plugins_226.zip -d /tmp/agentinstaller
Exit status is:0
Agent Image Download completed successfully.
[oracle@oemhost bin]$
Step-3: Now let’s scp the software to our target server or Transfer it and unzip it. Then go to the installer location. Then run below command.
$./agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/product/agent13c \
-ignorePrereqs \
-invPtrLoc /u01/app/OraInventory/oraInst.loc \
AGENT_PORT=3872 \
EM_UPLOAD_PORT=4903 \
OMS_HOST=oemhost.oracle.com \
ORACLE_HOSTNAME=example \
AGENT_INSTANCE_HOME=/u01/app/oracle/product/agent13c/agent_13.2.0.0.0 \ -- optional
AGENT_REGISTRATION_PASSWORD="world123" \
SCRATCHPATH=/home/oracle/tmp
OR
You can create a .rsp ( response file and run like below):
-- see the values set in agent.rsp response file:
$ cat agent.rsp | grep -v ^# | grep -v ^$
OMS_HOST=oemhost.oracle.com
EM_UPLOAD_PORT=4903
AGENT_REGISTRATION_PASSWORD=world123
AGENT_PORT=3872
EM_INSTALL_TYPE="AGENT"
$/u01/app/oracle/product/agent13c/agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/product/agent13c RESPONSE_FILE=/u01/app/oracle/product/agent13c/agent.rsp
Note:
If you are getting below error then go with recommended fix:
Error msg:
SEVERE:emctl secure agent command has failed with status=1
Agent configuration has failed
Waiting for agent targets to get promoted...
Fix:
Reset the password of "AGENT_REGISTRATION_PASSWORD"
Setup --> Security --> Registration Passwords --> create
Step:4 - Execute the root.sh as given in the log from # ( root) user
# /u01/app/oracle/product/agent13c/agent_13.2.0.0.0/root.sh
Step-5: Check the agent status now:
[oracle@example bin]$ pwd
/u01/app/oracle/product/agent13c/agent_13.2.0.0.0/bin
[oracle@example bin]$
[oracle@example bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.2.0.0.0
OMS Version : 13.2.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/app/oracle/product/agent13c/agent_inst
Agent Log Directory : /u01/app/oracle/product/agent13c/agent_inst/sysman/log
Agent Binaries : /u01/app/oracle/product/agent13c/agent_13.2.0.0.0
Core JAR Location : /u01/app/oracle/product/agent13c/agent_13.2.0.0.0/jlib
Agent Process ID : 29272
Parent Process ID : 29240
Agent URL : https://example.oracle.com:3872/emd/main/
Local Agent URL in NAT : https://example.oracle.com:3872/emd/main/
Repository URL : https://oemhost.oracle.com:4903/empbs/upload
Started at : 2018-01-10 14:15:40
Started by user : oracle
Operating System : Linux version 2.6.32-358.el6.x86_64 (amd64)
Number of Targets : 2
Last Reload : (none)
Last successful upload : 2018-01-10 14:22:31
Last attempted upload : 2018-01-10 14:22:31
Total Megabytes of XML files uploaded so far : 0.28
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 9.78%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2018-01-10 14:23:47
Last successful heartbeat to OMS : 2018-01-10 14:23:47
Next scheduled heartbeat to OMS : 2018-01-10 14:24:47
---------------------------------------------------------------
Agent is Running and Ready
[oracle@example bin]$
ReplyDeleteIt is very good and useful .Learned a lot of new things from your post!Good creation ,thanks for good info Oracle SOA Online Training Bangalore
This Helped me a lot. Thanks Gouranga
ReplyDeleteThanks. Helped with EM 13.4
ReplyDeleteif i forget my agent_registration_password and i reset it ..what about the existing agent will they failed
ReplyDeleteAdd a new agent registration password. You can have more than one.
Delete