Forum Stats

  • 3,853,839 Users
  • 2,264,285 Discussions
  • 7,905,471 Comments

Discussions

Equivalent of "guided" discovery with 'emcli' ?

Sebino
Sebino Member Posts: 66 Red Ribbon
edited Mar 13, 2020 10:00AM in Enterprise Manager

Hello,
Using OEM 13c I'd like to know if it's possible to detect/discover all possible targets on a server with 'emcli'.

When running Setup -> Add Target -> Add Targets Manually

Add using guided process => select "Oracle database, listener and ASM"... => Specify host of cluster <server name>

I end up with all 8 databases running on this machine <server name>, a "+ASM_server.domain.com" target, and

a "LISTENER_machin.domain.com" too plus a warning saying "thsi host has Oracle Restart installed. Recommended

to promote the unmanaged HAS target on the host".

I can't find a way to get the same list of 10 resources (+ HAS) with emcli (I tried with

emcli run_auto_discovery  -host="<server name>" but it displays stuff about a job that I then query with get_jobs

but it displays nothing...

Thanks.

Regards,

Sebino

Answers