We want to move the agent to another OMS at different server but the same version. I made the move change as the following:
1. shutdown the agent.
2. backup the emd.properties and change the REPOSITORY_URL parameter in the file.
3. Made the cleanup
rm -r $ORACLE_HOME/sysman/emd/state/*
rm -r $ORACLE_HOME/sysman/emd/collection/*
rm -r $ORACLE_HOME/sysman/emd/upload/*
rm $ORACLE_HOME/sysman/emd/lastupld.xml
rm $ORACLE_HOME/sysman/emd/agntstmp.txt
rm $ORACLE_HOME/sysman/emd/blackouts.xml
rm $ORACLE_HOME/sysman/emd/protocol.ini
4. emctl clearstate agent
5. emctl start agent.
It works for some agents, but did not work for some agents. Why? Can somebody explain of how to for the ones did not work? Thanks!