Wednesday, November 14, 2007

Oracle Enterprise Manager Agent Upload Troubleshooting

Every find the Oracle Enterprise Manager Grid Control agents not uploading.
There are many reasons for the agent not being able to upload.

Examine the agent


1. First I always check the status of the agent
emctl status agent

2. Examine status output, may see that the agent is not uploading by see
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 828
Size of XML files pending upload(MB) : 56.61
Available disk space on upload filesystem : 8.50%
Last successful heartbeat to OMS : 2007-10-21 10:55:39

3. Next I always attempt to do a manual upload for the agent to check/verify upload problem
emctl upload agent

4. Check the following log file for errors
$AGENT_HOME/sysman/log/emagent.trc

In Most cases it is due to a bad .xml file or unable to contact the management service. If it is due to contacting the management service you will need to fix the OMS Service or connectivity to the service, however if it is due to a bad xml file you can then try to just remove that file from the upload location. I usually save the file to another location so that I can send the file to Oracle Support where hopefully they can tell me why the file would not upload.Once you have removed the file from the upload location you can attempt a manual upload again.emctl upload agent Check the logfile again for errors. you can repeat for subsequent bad xml files, but if all else fails we can always clear the agent completely. Keep in mind yuo will lose data from the pending xmls therefore the data will not make it to the Grid Control Repository.


Clear the agent up


1. Stop the agent on the target node
emctl stop agent

2. Delete any pending upload files from the agent home
rm -r $ORACLE_HOME/sysman/emd/state/*

rm -r $ORACLE_HOME/sysman/emd/collection/*
rm -r $ORACLE_HOME/sysman/emd/upload/*
rm $ORACLE_HOME/sysman/emd/lastupld.xml
rm $ORACLE_HOME/sysman/emd/agntstmp.txt
rm $ORACLE_HOME/sysman/emd/blackouts.xml


3. agent clearstate
emctl clearstate


4. Start the agent again
emctl start agent

5. Force an upload to the Oracle Management Server/Service (OMS)
emctl upload agent

1 comment:

oracle ebs said...

Very Nice ! We all appreciate with your post.Keep posting these kind of information. Its great information on oracle enterprise manager.