Wednesday, December 22, 2010

EMD upload error: uploadXMLFiles skipped

There are situations where agent upload command gives the following error
emctl upload
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet. If this issue persists check trace files for ping to OMS
related errors.
To fix this issue
exec mgmt_admin.cleanup_agent('host:port'); 
host:port is the hostname and port shown in the agent status output
Agent Version     :
OMS Version       :
Protocol Version  :
Agent Home        : /opt/app/oracle/grid_agent/agent11g
Agent binaries    : /opt/app/oracle/grid_agent/agent11g
Agent Process ID  : 25049
Parent Process ID : 25027
Agent URL         :
Repository URL    :
This command should be run on grid control database login as sysman. This will remove the remote host information from the grid control repository.

On the remote host itself run
rm -r /sysman/emd/state/*
rm -r /sysman/emd/collection/*
rm -r /sysman/emd/upload/*
rm /sysman/emd/lastupld.xml
rm /sysman/emd/agntstmp.txt
rm /sysman/emd/blackouts.xml
rm /sysman/emd/protocol.ini
Some files may not exists in the agent home.

Clear the agent state
$Agent_home/emctl clearstate agent
Secure the agent again
emctl secure agent
and start the agent
emctl start agent
Monitor new host being registered on the grid control target page. On the agent status output monitor the following lines for sucessful uploads
Last successful upload                     
Total Megabytes of XML files uploaded so far 
Number of XML files pending upload          
Size of XML files pending upload(MB)        
Last successful heartbeat to OMS