- 3,708,771 Users
- 2,241,125 Discussions
- 7,840,600 Comments
Forum Stats
Discussions
Categories
- 22 Industry Applications
- 3.2K Intelligent Advisor
- 4 Insurance
- 746 On-Premises Infrastructure
- 251 Analytics Software
- 21 Application Development Software
- 1.7K Cloud Platform
- 700.4K Database Software
- 17.4K Enterprise Manager
- 4 Hardware
- 107 Infrastructure Software
- 70 Integration
- 45 Security Software
How to write a script using emcli to see the list of targets in the OMS

Hi please share a sample script to execute from the OMS server to see the status of the OMS or list the targets.
0
Answers
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