EM 12c: Newly installed Agent and Host Targets are listed with Pending Status (Doc ID 1955677.1)

Last updated on AUGUST 03, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.2.0 and later
Information in this document applies to any platform.

Symptoms

Newly installed 12c Agent on Linux x86-64 bit OS.
The agent and host targets are shown with status pending in the console. The agent is able to start and upload fine to the OMS:

 ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.2.0
OMS Version       : 12.1.0.2.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u01/app/oracle/product/agent_12/agent_inst
Agent Binaries    : /u01/app/oracle/product/agent_12/core/12.1.0.2.0
Agent Process ID  : 27151
Parent Process ID : 27093
Agent URL         : https://agentmachine.domain:3872/emd/main/
Repository URL    : https://omsmachine.domain:1159/empbs/upload
Started at        : 2014-11-24 20:29:07
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 23.85%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2014-11-25 17:20:32
Last successful heartbeat to OMS             : 2014-11-25 17:20:32
Next scheduled heartbeat to OMS              : 2014-11-25 17:21:33

---------------------------------------------------------------
Agent is Running and Ready

./emctl upload agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully

However, no data has been uploaded to the OMS so far.
But trying to list the targets at the Agent side fails with:


./emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
2014-11-25 17:22:22,315 [main] ERROR emSDK.config  - oracle.sysman.emSDK.conf.TargetListException: Could not initialize class oracle.sysman.emSDK.emd.dtd.TargetProperty
Could not initialize class oracle.sysman.emSDK.emd.dtd.TargetProperty

-  The <AGENT_INST>/sysman/emd/targets.xml file has a single line entry:

<Targets AGENT_TOKEN="98F32F48316E549DA300EA9ED02AFB01BBEF085CA00028756E1B7E0FF0A54A00"/>

-  The <AGENT_INST>/sysman/log/gcagent_mdu.log shows that the target promotion is failing with the below errors

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms