Resetting an Enterprise Manager Agent
March 5th, 2010 Posted in Oracle How-To
There are times when your Enterprise Manager Agent needs to be cleared out and rest. Here are some very simple steps.
Set your agent home. This is specific to you configuration.
export AGENT_HOME=/app/oracle/product/gc10.2/agent10g/
Stop the agent
$AGENT_HOME/bin/emctl stop agent
Clean up an pending files
rm -r $AGENT_HOME/sysman/emd/state/* rm -r $AGENT_HOME/sysman/emd/upload/* rm $AGENT_HOME/sysman/emd/lastupld.xml rm $AGENT_HOME/sysman/emd/agntstmp.txt rm $AGENT_HOME/sysman/emd/protocol.ini
Start the agent again
$AGENT_HOME/bin/emctl start agent
Clear the state of the agent
$AGENT_HOME/bin/emctl clearstate agent
Secure your agent (if this applies to your setup)
$AGENT_HOME/bin/emctl secure agent
Upload data back to OMS
$AGENT_HOME/bin/emctl upload agent
You may also need to log into your OMS interface and unblock the agent.