Troubleshoot OEM 12c Cloud Control Agent and Target

Troubleshoot OEM Agent and Target:
Error: Target Metadata Loader Failed at Startup

If an OEM agent is down, it should restart automatically. Else we can start manually from backend.
./emctl status agent
./emctl start agent
./emctl stop agent

If start agent fails with error: Target Metadata Loader Failed at Startup
Possible reasons:
targets.xml might be missing or corrupted
If corrupted take a backup of existing targets.xml file
./emctl config agent listtargets (Could fail with targets.xml is missing)

File Location: <Middlewarehome>/agent12c/agent_inst/sysman/emd

Solution:Recreate targets.xml file
1. Manually Create targets.xml file.
vi targets.xml
2.Add the below to the file
<Targets> </Targets>
3. Start emctl agent (Agent might be blocked for a while)
4. From OEM frontend, navigate to agents page
5. Select the probematic agent
6. Under agents dropdown select agent "Resynchronize" (This will resync targets to targets.xml file)
7. Confirm to unblock OEM agent


Comments

Popular posts from this blog

Script to check Datasource connections -Weblogic WLST scripting

Troubleshoot OEM 12c Cloud Control Metric Alerts