Agent to OMS Communi Fails if Agent's REPOSITORY_URL Para has Incorrect_737373.1

rongshiyuan發表於2014-08-08

Communication: Agent to OMS Communication Fails if the Agent's REPOSITORY_URL Parameter has Incorrect Value (Doc ID 737373.1)


In this Document

Symptoms
Cause
Solution
References

Applies to:

Enterprise Manager Base Platform - Version 10.1.0.2 to 11.1.0.1 [Release 10.1 to 11.1]
Information in this document applies to any platform.
***Checked for relevance on 26-Oct-2012***

Symptoms

Agent upload to OMS fails with:

cd /bin
emctl upload agent
Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..


The 'emctl status agent' command shows a backlog of files waiting to be uploaded and may not have any value for the 'OMS Version' field.

Cause

The REPOSITORY_URL parameter mentioned in /sysman/config/emd.properties file has incorrect value for the OMS hostname and upload port.

Often, the current value of the REPOSITORY_URL is the one that it defaults to during installation - the http://agentmachine.domain:4889/em/upload - this is incorrect, the REPOSITORY_URL should be omsmachine.domain:4889/em/upload.

Solution

Tto identify the correct hostname and upload port details for the REPOSITORY_URL parameter, use the steps in Document 358953.1: What ports are used in communication between the Grid Control OMS and a Management Agent?

Once, the hostname and upload port for the OMS are correctly identified follow the below steps on the Agent:

- Stop the agent

cd /bin
emctl stop agent

- Take a backup of the /sysman/config/emd.properties

- Edit the emd.properties file and correct the REPOSITORY_URL parameter to have the correct hostname and port value, on which the OMS is configured.

REPOSITORY_URL=http://omsmachine.domain:4889/em/upload/

- Delete the /sysman/emd/lastupld.xml file.

- Start the agent

cd /bin
emctl start agent

- If the OMS is secured and locked (accepts uploads only in the https mode), then secure the Agent also. Refer:
Document 428874.1: How to tell if the EM OMS is locked or unlocked?
Document 283091.1: How To Secure / Unsecure The Grid Control Components (Agent / OMS) In 10g

- Check the agent upload:

cd /BIN
emctl upload

This should work fine now.

References

NOTE:362199.1 - EM 10g : Agent to OMS Communication Fails with "Common Name = "omsmachine.domain" Does not Match Hostname = "omsmachine" " in the Emagent.trc
NOTE:729327.1 - How to ReConfigure 10g Agents if Wrong Management Service 'Hostname' or 'Port' Specified during Installation
NOTE:428874.1 - How To Verify if the Enterprise Manager Grid Control (OMS) is Locked or Unlocked?
NOTE:283091.1 - How to Secure the OMS and Agent Components in a 10g Grid Control Setup?
NOTE:358953.1 - What ports are used in communication between the Grid Control OMS and a Management Agent?

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1247797/,如需轉載,請註明出處,否則將追究法律責任。

相關文章