| Subject: | How to Point an Agent to a different Grid Control OMS and Repository? | |||
| Doc ID: | Note:413228.1 | Type: | HOWTO | |
| Last Revision Date: | 25-FEB-2008 | Status: | PUBLISHED | |
| In this Document Goal Solution Applies to:Enterprise Manager Grid Control – Version: 10.2.0.0 GoalThis Note intends to explain how to point an Oracle Management Agent to a different Grid Control OMS and Repository? NOTE: These steps are NOT necessary if you are simply pointing the Oracle Management Agent to a new OMS that points to the SAME repository. If simply moving from one OMS to another within the same Grid infrastructure, follow the instructions in the Documentation, Oracle® Enterprise Manager Advanced Configuration, Chapter 12 Reconfiguring the Management Agent and Management Service, 12.1.1 Configuring the Management Agent to Use a New Management Service
SolutionA. Drop the Agent from the current OMS
Note: this assumes that the Agent is still pointing to the old OMS. You will first drop the Agent from the old OMS, then add it to the new OMS. This can be ignored if the OMS doesn’t exist anymore.
1. Leave the monitoring agent up and running in order to delete all the targets, except the host and the agent itself). 2. From the old OMS, drop all the Targets on the host to be removed, except the Host and Agent. Do not remove Host yet, but to confirm all targets are gone, choose Targets > Hosts, highlight the host in the list and hit “Remove” button. Grid will not allow the Host to be dropped until all targets on the Host are gone, so this will list any remaining targets. Again: Do not remove Host yet. All targets except the Host and Agent should now be gone from the OMS. 3. Confirm the targets (except Host and Agent) are removed successfully and completely from the OMS: Click on “Setup” in upper right.
3a. Click on “Deleted Targets” (Note this only appears once a delete is attempted.) 3b. Confirm that the “Time Delete Completed” column is filled in; once that column is filled in then the delete is complete. 4. Stop the monitoring Agent 5. Drop the Host target from the old OMS. Monitor for the “Time Delete Completed” column. 6. Drop the Agent target from the old OMS. Targets > All Targets > [pick Agent from list] > “Remove” button. Monitor for the “Time Delete Completed” column. –> At this point the removal from the old OMS is completed. B. Point the Agent at the new OMS 7. Follow the steps to reconfigure the Agent to point to the new OMS. Here is the Documentation reference, which does explain several steps in a clear manner and will help clarify the process needed. Oracle® Enterprise Manager Advanced Configuration, Chapter 12 Reconfiguring the Management Agent and Management Service, 12.1.1 Configuring the Management Agent to Use a New Management Service Quick Summary of steps to point Agent at new OMS To associate the Management Agent with a new Management Service after you have installed the Management Agent: #1 Stop the agent #2 Edit the Agent’s $ORACLE_HOME/sysman/config/emd.properties file #3 Search for REPOSITORY_URL #4 Search for EMD_URL #5 Modify the value for the emdWalletSrcUrl and emdWalletDest properties. The emdWalletSrcUrl references the new Management Service. The emdWalletDest is the location where the agent saves the wallet received from the OMS, in its own file system. This is normally a directory on the agent node. For example, if the new Management Service is on a host called mgmthost2.acme.com, modify the properties as follows: #6 Save and exit emd.properties. Disclaimer: Clean starting the agent is only to be performed in this specific scenario and should only be used for all other issues under guidance from Oracle Support as this can damage the functionality of Grid Control and may require a re-installation.
#7 Clean up Agent: from the Agent $ORACLE_HOME rm -r $ORACLE_HOME/sysman/emd/state/* #8 Issue an agent clearstate from the Agent $ORACLE_HOME #9 Secure the agent #10 Start the agent #11 Force an upload to the OMS After 10-15 minutes the Agent and Host should show up in the new OMS. |
November 9th, 2005 at 2:38 pm Very nice! When I set this up on my test server I found that logins from network machines that weren’t “hosts” did not populate the host column. I modified the login trigger as follows to catch the v$session.terminal field if sys_context(’USERENV’,’HOST’) is null
since both fields are char(30).
…
case
when sys_context(’USERENV’,’HOST’) is not null then sys_context(’USERENV’,’HOST’)
else
(SELECT TERMINAL FROM v$session
WHERE sys_context(’USERENV’,’SESSIONID’) = AUDSID)
end,
…
Thank you.