Enterprise Manager Generic (MOSC)

MOSC Banner

Configuring the Management Agent to Use a New Management Service - Is there a trick to it?

edited Nov 5, 2013 7:19AM in Enterprise Manager Generic (MOSC) 10 commentsAnswered
 OMS serverLinux 2.6.39-200.24.1.el6uek.x86_64
Oracle 11.2.0.3
OMS version 12C

Database Server
Linux 2.6.39-400.209.1.el6uek.x86_64
Oracle 11.2.0.4

I installed the agent via the OMS console to the database server.  Everything works as designed.   What I want to do is to point the agent to our DR OMS server.  I want this to be scripted so that we can automate failing over to the DR OMS server.  Here is what I ran:

export AGENT_HOME=/blah/12.1.0/agent_inst
cd $AGENT_HOME

bin/emctl stop agent
cp sysman/config/emd.properties sysman/config/emd.properties.`date '+%F:%T'`
perl -pi -e "s/REPOSITORY_URL=https:\/\/.*:/REPOSITORY_URL=https:\/\/DR_OMS_SERVER:/" sysman/config/emd.properties

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center