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

OMS_HOST: Name (or IP) of OEM OMS Server. If the server is not in DNS, set in /etc/hosts. Use IP as a last resort.
ORACLE_HOSTNAME: Defaults to the physical host name.. hostname
ALLOW_IPADDRESS: Set TRUE only if using IP for ORACLE_HOSTNAME
LOGIN_USER / LOGIN_PASSWORD: SYSMAN (or any other super administrator) and the password for that account.
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_BASE_DIR: Arbitrary base directory for Agent. The example shown is a good choice.
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

If you have problems securing the agent, review the secure.log in AGENT_INSTANCE_HOME/sysman/log

Register Targets

AgentDeploy Method

TODO

OEM - "Add Targets Manually" Method

Setup - Add Target - Add Targets Manually

Install Agent on Host

In the example above we have created a named credential and a root credential that log in to the 'oracle' account using a ssh key pair. The root crednetial is set up to use sudo to run as root.

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 error

sudo 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