A contact wrote: “I perform Auto Discovery in Oracle Enterprise Manager every week, to discover new targets – for example, to find out if someone in the organization has created new database servers in a certain IP range. I then want the results of the Auto Discovery in a SQL based report. What tables or views in which schema can I find that information?” The answer was: Auto Discovery as a process in Enterprise Manager, using network scan to quickly discover unmanaged targets across a specified IP range, is described here . The information about the Auto Discovery results is in the Enterprise Manager Repository view MGMT$MANAGEABLE_ENTITIES (owned by SYSMAN). You need to select the rows where the value of the PROMOTE_STATUS column equals 1. See the example below. SQL> select entity_name, entity_type from MGMT$MANAGEABLE_ENTITIES where promote_status = 1; ENTITY_NAME ENTITY_TYPE ---------------------------------------------------------------------------------------------------------- /Farm_GCDomain/GCDomain_em12c.sainath.com_7102 weblogic_domain Oracle_BI11_3_em12c.sainath.com oracle_home Another option is to use emcli, and the get_targets verb combined with the unmanaged switch. The verb is described in this documentation link . A quick example of the syntax is: emcli get_targets –unmanaged Using this switch gets unmanaged targets which have no status or alert information as can be seen below. [oracle@em12c bin]$ ./emcli login -username=sysman Enter password : Login successful [oracle@em12c bin]$ ./emcli get_targets -unmanaged Target Type Target Name oracle_home Oracle_BI11_3_em12c.sainath.com weblogic_domain /Farm_GCDomain/GCDomain_em12c.sainath.com_7102 You can also do a “./emcli help get_targets” to get more help on this command.
↧