Steps to move OMS agent to new OMS repository

Steps below can be used to move OMS Agent from OLD to NEW OMS repository w/o un-installing and re-installing…

On Agent machine/box:

Stop agent: emctl stop agent
Modify emd.properties : Change REPOSITORY_URL and emdWallSrcUrl to new OMS repository Cleanup following files and dir: under $ORACLE_HOME/sysman/emd/upload and $ORACLE_HOME/sysman/emd/state
$ORACLE_HOME/sysman/emd/lastupld.xml
$ORACLE_HOME/sysman/emd/agntstmp.txt
$ORACLE_HOME/sysman/emd/protocol.ini

On OLD OMS database repository find agent that needs to be removed and use package below to remove/clean it up:

SQL> select target_name from mgmt_targets where target_name like
SQL> '%app%';

TARGET_NAME
--------------------------------------------------------------------------------
vwappp005.Shared
vwappp006.Shared
vwappp014.Shared
vwappt001.Shared
vxappp003
vwappp005.Shared:3872
wappp006.Shared:3872
wappp014.Shared:1830
wappp014.Shared:3872
wappt001.Shared:3872
xappp003:3872

11 rows selected.

SQL> exec mgmt_admin.cleanup_agent('vwappt001.Shared:3872');

PL/SQL procedure successfully completed.

On Agent box:

Clear state agent: emctl clearstate
agent Secure agent: emctl secure agent
Start agent: emctl start agent
Upload agent : emctl upload agent

Once, all above steps are done agent should appear on new OMS repository..

Advertisements

Author: Abdul H Khan

Trying to be cloudy!

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