Deleting All OEM Targets on a host with emcli

# work in progress – do not use yet
# stop the agent on the target
#logon to the OEM server (middle tier)
emcli login -username=sysman
emcli sync
emcli get_targets | grep -i targetHomeName
# now find the entry with “oracle_emd” – you must use that entry – another other entry can cause corruption
oracle@sampson: [oracle/]> emcli delete_target -name=”gold.localdomain” -type=’oracle_emd’ -delete_monitored_targets
Error: Agent status is currently UP. Shut down the Management Agent and wait for the agent to be marked UNREACHABLE before deleting.
oracle@sampson: [oracle/]> emcli delete_target -name=”gold.localdomain:1830″ -type=’oracle_emd’ -delete_monitored_targets
now wait for success – you can ignore certain errors like… to be completed

Leave a Comment

Scroll to Top