Applies to:Enterprise Manager Base Platform - Version: 10.2.0.5 to 184.108.40.206 - Release: 10.2 to 11.1
This problem can occur on any platform.
After installing the agent, it generates the following errors in the emagent.trc file.
In this case, there is no issue with the agent start and Securing the Agent is always successful.
But the command emctl status agent shows:
emctl upload agent does not give the error as "EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet"
But gives the error similar to the following:
Resynchronization of the agent as per the document Note 799618.1 does not resolve the issue and gives an error message that resynchronization is failed.
As this issue is happening right after the installation of agent, this can happen if there was a duplicate/old entry in the repository tables with the name of same agent and targets on this host.
Executing the following query gives this information:
Follow this action plan to resolve the issue.
Please note that this needs to be done only for the new agent installation as the action plan will remove all the targets and agent historical information from the repository.
1. Stop the agent
<AGENT_HOME>/bin>./emctl stop agent
2. Ensure that there are no emagent processes on the server
$ps -ef|grep emagent
If you see any process, please kill all of them.
3. Login to the repository database as SYSMAN user and execute the following query to clean up the old agent: