OEM Agent Install
AgentPull Method
Run all steps on the target server
Download AgentPull Script
Download the script from your OEM server...
curl -sk https://myoemserver.mydomain:7803/em/install/getAgentImage > /tmp/AgentPull.sh
chmod 755 /tmp/AgentPull.sh
Create Response File
vi /tmp/em_agent.rsp
LOGIN_USER=SYSMAN
LOGIN_PASSWORD=mySYSMANPassword
PLATFORM="Linux x86-64"
VERSION=13.4.0.0.0
AGENT_REGISTRATION_PASSWORD=myAgentPassword
AGENT_BASE_DIR=/u01/app/oracle/product/agent13c
AGENT_INSTANCE_HOME=/u01/app/oracle/product/agent13c/agent_inst
AGENT_PORT=3872
EM_UPLOAD_PORT=4903
OMS_HOST=myoms.mydomain
ORACLE_HOSTNAME=myserver.mydomain
ALLOW_IPADDRESS=FALSE
ORACLE_HOSTNAME: Defaults to the physical host name.. hostname
ALLOW_IPADDRESS: Set TRUE only if using IP for ORACLE_HOSTNAME
PLATFORM / VERSION: See output from... /tmp/AgentPull.sh -showPlatforms
AGENT_REGISTRATION_PASSWORD: This must match what is set within OEM. If you don't know the current value then you can either reset it or, more safely (in case anyone else is using the current value), you can set an additional agent registration password.
AGENT_INSTANCE_HOME: By default agent_inst is created under AGENT_BASE_DIR.
AGENT_PORT: Defaults to 3872 or any port 1830 to 1849
EM_UPLOAD_PORT: Upload port for OMS. See output from this command, executed on the OMS..../emctl status oms -detailsIt is recommended to use the HTTPS Upload Port from this outputIf emctl is not in your PATH, the emctl executable can usually be found somewhere like: /u01/app/em134/bin
Set Environment Variables
Update the .bash_profile (or equivalent) for the 'oracle' user to reflect some of the values you have set in the response file. Namely...
export AGENT_BASE_DIR=/u01/app/oracle/product/agent13c
export AGENT_INSTANCE_HOME=/u01/app/oracle/product/agent13c/agent_inst
export OMS_HOST=myoms.mydomain
Also set these variables in your current environment
Agent Install
/tmp/AgentPull.sh -ignorePrereqs RSPFILE_LOC=/tmp/em_agent.rsp
As 'root'...
${AGENT_BASE_DIR}/agent_13.4.0.0.0/root.sh
Your server should now be visible in OEM Console. Targets - Hosts
Register Targets
AgentDeploy Method
TODO
OEM - "Add Targets Manually" Method
Setup - Add Target - Add Targets Manually
Install Agent on Host
Appendix
OEL8 Package Check
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep binutils-2.30 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep gcc-8.2.1 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep gcc-c++-8.2.1 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep glibc-2.28|| echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep glibc-devel-2.28 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep glibc-devel-2.17|| echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libaio-0.3.110 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libaio-devel-0.3.110 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libgcc-8.2.1 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libstdc++-8.2.1 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libstdc++-devel-8.2.1 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libnsl || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep sysstat-11.7.3|| echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep motif-2.3.4 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep motif-devel-2.3.4 || echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep redhat-lsb-4.1|| echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep redhat-lsb-core-4.1|| echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep openssl-1.1.1|| echo FAIL
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep make-4.2.1 || echo FAIL
Expected Installs on a vanilla OEL8 installation...
sudo yum install redhat-lsb-core-4.1
sudo yum install redhat-lsb-4.1
sudo yum install gcc-8.2.1
sudo yum install gcc-c++-8.2.1
sudo yum install glibc-devel-2.17
In testing, attempting to install glibc-devel-2.17 threw an errorsudo yum install libaio-devel-0.3.110
sudo yum install libgcc-8.2.1
sudo yum install sysstat-11.7.3
sudo yum install motif-2.3.4
sudo yum install motif-devel-2.3.4
Bibliography
https://www.mydbaworld.com/install-em13c-agent-add-targets-using-command-line/https://docs.oracle.com/cd/E73210_01/EMADV/GUID-083F3315-7D91-4AF7-A6F3-9F8490CE607C.htmhttps://dbakevlar.com/2014/02/em12c-creating-a-new-agent-registration-password/https://oracle-base.com/articles/13c/cloud-control-13c-post-installation-setup-taskshttps://docs.oracle.com/cd/E63000_01/EMADM/discovery_db.htm