Below Steps to needs to done on OMS Server::
[oracle@sivaOMS001 bin]$ ./emcli login -username=SYSMAN
Enter password :
Login successful
[oracle@sivaOMS001 bin]$ ./emcli get_supported_platforms
-----------------------------------------------
Version = 12.1.0.3.0
Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.
[oracle@sivaOMS001 bin]$ df -h /tmp/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-LogVol00
99G 8.0G 86G 9% /
[oracle@sivaOMS001 bin]$ ./emcli get_agentimage -destination=/tmp -platform="Linux x86-64" -version=12.1.0.3.0
Destination directory /tmp is not empty. Make sure you pass an empty destination directory to download the agent image.
[oracle@sivaOMS001 bin]$ pwd
/u01/app/oracle/product/OEM_HOME/MIDDLEWARE/oms/bin
[oracle@sivaOMS001 bin]$ cd /tmp
[oracle@sivaOMS001 tmp]$ mkdir agent_soft
[oracle@sivaOMS001 tmp]$ cd -
/u01/app/oracle/product/OEM_HOME/MIDDLEWARE/oms/bin
[oracle@sivaOMS001 bin]$ ./emcli get_agentimage -destination=/tmp/agent_soft/ -platform="Linux x86-64" -version=12.1.0.3.0
=== Partition Detail ===
Space free : 90 GB
Space required : 1 GB
Check the logs at /u01/app/oracle/product/OEM_HOME/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2017-03-03_10-07-56-AM.log
Downloading /tmp/agent_soft//12.1.0.3.0_AgentCore_226.zip
File saved as /tmp/agent_soft//12.1.0.3.0_AgentCore_226.zip
Downloading /tmp/agent_soft//12.1.0.3.0_PluginsOneoffs_226.zip
File saved as /tmp/agent_soft//12.1.0.3.0_PluginsOneoffs_226.zip
Downloading /tmp/agent_soft//unzip
File saved as /tmp/agent_soft//unzip
Agent Image Download completed successfully.
[oracle@sivaOMS001 bin]$
[oracle@sivaOMS001 agent_soft]$ ls -ltrh
total 235M
-rw-r--r-- 1 oracle oinstall 235M Mar 3 10:15 12.1.0.3.0_AgentCore_226.zip
[oracle@sivaOMS001 agent_soft]$ scp 12.1.0.3.0_AgentCore_226.zip oracle@target001:/tmp/agent_software/
oracle@target001's password:
12.1.0.3.0_AgentCore_226.zip 100% 235MB 15.7MB/s 00:15
[oracle@sivaOMS001 agent_soft]$
Below Steps to needs to done on Target Server where agent needs to install::
Step 1:: verify the pre-check logs
./agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/product/OEM_HOME OMS_HOST=sivaOMS001 EM_UPLOAD_PORT=4903 AGENT_REGISTRATION_PASSWORD=siva_1
Step 2:: use ignore precheck if it needs to ignore any of the pre-request from above
./agentDeploy.sh -ignorePrereqs AGENT_BASE_DIR=/u01/app/oracle/product/OEM_HOME OMS_HOST=sivaOMS001 EM_UPLOAD_PORT=4903 AGENT_REGISTRATION_PASSWORD=siva_1
-ignorePrereqs
[oracle@target001 agent_software]$ ./agentDeploy.sh -ignorePrereqs AGENT_BASE_DIR=/u01/app/oracle/product/OEM_HOME OMS_HOST=sivaOMS001 EM_UPLOAD_PORT=4903 AGENT_REGISTRATION_PASSWORD=define_1
Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/jdk/bin/java -classpath /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/jlib/agentInstaller.jar:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0 /tmp/agent_software /u01/app/oracle/product/OEM_HOME -prereq
Validating oms host & port with url: http://sivaOMS001:4903/empbs/genwallet
Validating oms host & port with url: https://sivaOMS001:4903/empbs/genwallet
Return status:3-oms https port is passed
Unzipping the agentcoreimage.zip to /u01/app/oracle/product/OEM_HOME ....
12.1.0.3.0_PluginsOneoffs_226.zip
Executing command : /tmp/agent_software/unzip -o /tmp/agent_software/12.1.0.3.0_PluginsOneoffs_226.zip -d /u01/app/oracle/product/OEM_HOME
Executing command : /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/jdk/bin/java -classpath /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/jlib/OraInstaller.jar:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/jlib/xmlparserv2.jar:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/jlib/srvm.jar:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/jlib/emCfg.jar:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/jlib/agentInstaller.jar:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0 /tmp/agent_software /u01/app/oracle/product/OEM_HOME /u01/app/oracle/product/OEM_HOME/agent_inst AGENT_BASE_DIR=/u01/app/oracle/product/OEM_HOME
Cloning the agent home...
Executing command: /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/bin/runInstaller -debug -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0 AGENT_BASE_DIR=/u01/app/oracle/product/OEM_HOME AGENT_BASE_DIR=/u01/app/oracle/product/OEM_HOME OMS_HOST=sivaOMS001 EM_UPLOAD_PORT=4903 AGENT_REGISTRATION_PASSWORD=define_1 -noconfig ORACLE_HOME_NAME=agent12c1 -force b_noUpgrade=true AGENT_PORT=-1
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/product/OEM_HOME/core/12.1.0.3.0/oui/bin/runInstaller -debug -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/u01/app/oracle/product/OEM_HOME/sbin ORACLE_HOME_NAME=sbin12c1 -force
Attach Home Logs Location:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/cfgtoollogs/agentDeploy/AttachHome<timestamp>.log
Attach home for sbin home completed successfully.
Updating home dependencies...
Executing command: /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/bin/runInstaller -debug -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={/u01/app/oracle/product/OEM_HOME/sbin:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0} -invPtrLoc /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oraInst.loc -force
Update Home Dependencies Location:/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/cfgtoollogs/agentDeploy/UpdateHomeDeps<timestamp>.log
Update home dependency completed successfully.
Performing the agent configuration...
Executing command: /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/oui/bin/runConfig.sh ORACLE_HOME=/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0 RESPONSE_FILE=/u01/app/oracle/product/OEM_HOME/core/12.1.0.3.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/product/OEM_HOME/core/12.1.0.3.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/product/OEM_HOME/core/12.1.0.3.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/product/OEM_HOME/core/12.1.0.3.0/cfgtoollogs/agentDeploy/agentDeploy_2017-03-03_10-36-05-AM.log
Agent deployment completed successfully.
[oracle@target001 agent_software]$ sudo /u01/app/oracle/product/OEM_HOME/core/12.1.0.3.0/root.sh
Finished product-specific root actions.
/etc exist
Finished product-specific root actions.
[oracle@target001 agent_software]$ sudo id
uid=0(root) gid=0(root) groups=0(root)
[oracle@target001 agent_software]$