How to write a script using emcli to see the list of targets in the OMS — oracle-tech

    Forum Stats

  • 3,708,771 Users
  • 2,241,125 Discussions
  • 7,840,600 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to write a script using emcli to see the list of targets in the OMS

User_8E9DZUser_8E9DZ Posts: 238 Blue Ribbon
edited November 2020 in Enterprise Manager

Hi please share a sample script to execute from the OMS server to see the status of the OMS or list the targets.

Answers

  • Adityanath DewoolkarAdityanath Dewoolkar Posts: 341 Bronze Badge

    On OMS server:

    To check status of OMS:

    emctl status oms

    OR

    emctl status oms -details

    To check target names & status:

    emcli login -username=sysman -password=<SYSMAN password>

    emcli get_targets -format=name:csv


    Regards,

    Adi

Sign In or Register to comment.