OEM Agent
Assumptions
EMAGENT_HOME is set in the environment. Ideally this should be in the .profile for the 'oracle' user. For example:
export EMAGENT_HOME=/u01/app/em12c/agent_13.1.0.0.0 # Database Servers
All commands should run as 'oracle' when on Database Servers (and 'oms' on the OMS.. expand for more info)
EMAGENT_HOME is likely to be different on the OMS. Ideally this should be in the .profile for the 'oms' user. For example:
export EMAGENT_HOME=/u01/app/agent12c/agent_13.1.0.0.0/bin # OMS
Start Agent
cd $EMAGENT_HOME/bin
./emctl start agent
Stop Agent
cd $EMAGENT_HOME/bin
./emctl stop agent
Check Agent
cd $EMAGENT_HOME/bin
./emctl status agent
To determine which agent is running (and from which location)...
ps -ef | grep oracle | grep agent
The result of the command below should be the URL of the agent. Try it in a browser to prove agent connectivity....
cd $EMAGENT_HOME/bin
./emctl status agent | grep "Agent URL" | grep -v "Local" | awk -F" : " '{ print $2 }'
Known Issues
Bibliography
https://blogs.oracle.com/oem/oracle-enterprise-manager-13c-release-4-update-5-13405-is-now-availablehttps://blogs.oracle.com/oem/oracle-enterprise-manager-13c-release-4-update-4-13404-is-now-availablehttps://blogs.oracle.com/oem/oracle-enterprise-manager-134-release-update-1-is-now-available