Oracle Enterprise Manager: Silent Installation Fail (SEVERE:emctl secure agent command has failed with status=1)
In this blog I cover what to do when the OEM agent installation
fails
SEVERE:emctl secure agent command has failed with status=1
SEVERE:emctl secure agent command has failed with status=1
SEVERE:emctl secure agent command has failed with status=1
Agent configuration has failed
/u01/app/oracle/product/agent/agent_13.3.0.0.0/cfgtoollogs/agentDeploy/agentDeploy_2020-06-25_23-04-01-PM.log
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Waiting for agent targets to get promoted...
Promoting agent and its related targets to Management Service failed
probably due to target type meta version present on the agent is not
present on the OMS.Make sure that the plug-in version deployed on agents
is the same as that of the version on the OMS. Also, the agent should be
on the same bundle patch version as that of the OMS.For more details,
check <AGENT_INST>/sysman/log/gcagent.log on agent and
emoms_pbs.log on the OMS.
Fix the cause of the error and retry the operation (or) manually run
the following commands on the remote host
The fix for this pretty simple follow sequence of commands as given below -
[As root]
Run root.sh
<AGENT_BASE/AGENT_VERSION/root.sh>
/u01/app/oracle/product/agent/agent_13.3.0.0.0/root.sh
[As oracle]
emctl secure agent
emctl status agent -secure
# Ensure the status is shown as secure
emctl start agent
emctl status agent
emctl config agent listtargets
#Ensure there are no targets
emctl config agent addInternalTargets
# there can be some warning messages when above command is run
emctl config agent listtargets
# Ensure that there are 2 targets listed - agent and host