EMCLI – Enterprise Command Line Interface . Though Managing OEM cloud control from GUI is easy. Few people like to use emcli command line tool.

Here i have listed few useful commands.

 

1. Login to syman

2. SYNC OMS REPOSITORY:

3. Get THE LIST OF TARGETS

For listing only the oracle_database

4. Delete a target from OEM cloud control:

5. Run autodiscovery on a target host

You can configure autodiscover from GUI also, after a target host is added. Below is for doing using EMCLI

Create a property file:

Update the property file:( It will look as below)

Create a job:

Get the job status:

Alternatively we can see the execution detail as :

6 . Add target database to OEM cloud:

SYNTAX:

EXAMPLE:

7. Get list of plugins installed on OMS server:

8 . Get list of plugins installed on a Management Agent:

9 . Create BLACKOUT:

Creating blackout for single database
DBNAME – DBATEST
BLACKOUT DUATION – 30 MIN
SCHEDULE- START IMMEDIATELY

For multiple databases:
DB NAME – DBATEST1,DBATEST2

Create blackout for a host(target agent) and all this services/database runnin on that server

TARGET AGENT HOST – localhost.dbaclass.com
DURATIO – 30 MIN
START IMMEDIATELY

Create blackout for RAC database:

Get status of a blackout:

SYNTAX

EXAMPLE:

Stop a BLACKOUT:

Delete a blackout:

10 . Decommission an agent and delete the respective targets:

11. Stop and start an agent from OMS server

STOP AN AGENT:

START AN AGENT:

12. Change password for dbsnmp user of target database

This will prompt for old password and new password.