Agent Resync or Agent Unreachable Issues, Can’t Communicate with OMS– ORACLE 12C

 

Proper Resync of an Agent

Log onto the server that is reporting it’s blocked.

FOR WINDOWS go to E:\app\oracle\agent12c\core\12.1.0.2.0\bin>

If Linux/Unix, go to the $AGENT_HOME/bin directory
1. Stop the agent:

./emctl stop agent

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
The Oracleagent12c1Agent service is stopping………….
The Oracleagent12c1Agent service was stopped successfully.

2. Secure the agent:

./emctl secure agent

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Agent is already stopped… Done.
Securing agent… Started.
Enter Agent Registration Password : <– Enter the Registration Password, if unknown, create a new one in the Console.
EMD gensudoprops completed successfully
Securing agent… Successful.

3. Restart the agent:

./emctl start agent

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
The Oracleagent12c1Agent service is starting……………………
The Oracleagent12c1Agent service was started successfully.

4. Verify that it’s secured by trying to upload, but still blocked, which we expect, (the unblock has to be done AFTER a resecure):

./emctl upload agent

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
—————————————————————
EMD upload error:full upload has failed: The agent is blocked by the OMS. Agentis out-of-sync with repository. This most likely means that the agent was reinst
alled or recovered. Please contact an EM administrator to unblock the agent by performing an agent resync from the console. (AGENT_BLOCKED)

5. Now, Submit a resync from the console to complete the task:

Click on Targets, All Targets. In the search menu, type in the name of the host that is experiencing the issue. All targets that are part of that host will come up. Notice the one that says “Agent”. Click on it and it will bring you to the Agent console.
Below the name of the host target name on the upper left, you will notice it says, “Agent” Click on this and then in the drop down menu, click on “Resyncronization”.
Follow through the defaults and click then click on the job that is submitted to perform the resync. You can monitor it till it’s complete, (sometimes it can take up to a 1/2 hour to clear out all the issues.
Once it says “Succeeded”, then you can log in and successfully upload, as well as the status should be green for all targets connected to this agent.
Anthony Besong

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s