Oracle Enterprise Manager 12c release 3 – Agent / OMS / Windows commands


After OEM installs and you would like to redeploy the agent. The oracle oem 12c agent may get stuck in a loop. This is because it creates a service. To delete the service, open up a cmd prompt.

sc delete [service name]

Open up a port Start > Administrative tools > Windows Firewall and Security | Run As Administrator

Inbound Rule > Create New

TCP : 3872

OMS server commands

emcli -login -username=sysman

emcli sync

emcli resyncAgent -agent=”agent:port”

emcli delete_target -name=”agent:port” -type=”oracle_emd” -delete_monitored_targets

emctl config oms -change_repos_pwd -use_sys_pwd -sys_pwd PASSWORD -new_pwd PASSWORD


Change timezone of server

exec mgmt_target.set_agent_tzrgn(‘agent:3872′,’America/New_York’)


emctl stop agent

emctl clearstate agent

emctl reload agent

emctl upload agent

emctl start agent

emctl resetTZ agent

emctl status agent

emctl pingOMS agent