[Email protected] ~]$ Cd/oem/oms/oms/bin
Log in to OMS
[Email protected] bin]$/EMCLI Login-username=sysman
Enter Password:
Login Successful Synchronizing information
[[email protected] bin]$./EMCLI Sync
Synchronized successfully gets the targets associated with the agent currently mwtest02 the host
[Email protected] bin]$/EMCLI get_targets | grep mwtest02
5 under Blackout host mwtest02
5 under Blackout oracle_emd mwtest02:3872 perform the delete operation and associate all related targets
[Email protected] bin]$/emcli delete_target-name= ' mwtest02:3872 '-type= ' oracle_emd '-delete_monitored_targets
Target "MWTEST02:3872:ORACLE_EMD" deleted successfully confirmation
[Email protected] bin]$/EMCLI get_targets | grep mwtest02 Logout
[Email protected] bin]$/EMCLI Logout
Logout Successful
[Email protected] bin]$
Use EMCLI to delete obsolete agent targets in Oracle EM Cloud Control 12c