OEM 13c Useful OMS and Agent Commands

|
Facebook
OEM 13c Useful OMS and Agent Commands

Introduction

OEM 13c Useful OMS and Agent Commands is a practical reference guide for Oracle DBAs responsible for administering and maintaining Oracle Enterprise Manager Cloud Control environments. Whether you are installing OEM, deploying Management Agents, troubleshooting communication issues, monitoring target status, or performing routine administration, these commands are frequently used during day-to-day operations.

If you are following our Oracle Enterprise Manager 13c installation series, this guide complements each article by providing the most commonly used EMCTL, EMCLI, OMS, and Management Agent commands in a single location. Instead of searching through multiple Oracle documents, you can use this article as a quick reference while working with Oracle Enterprise Manager Cloud Control.

The commands included in this guide are organized into logical sections covering Oracle Management Server (OMS), Oracle Management Agent, Enterprise Manager Command Line Interface (EMCLI), networking, troubleshooting, and verification tasks. Each command is accompanied by a brief explanation to help you understand its purpose and when to use it in real-world DBA environments.

Oracle Management Server (OMS) Commands

1. Check OMS Status

Displays the current status of the Oracle Management Server, WebTier, and JVMD Engine.

emctl status oms
OEM 13c Useful OMS and Agent Commands

2. Detailed OMS Status

Displays OMS status along with console URL, upload URL, ports, domain information, and instance details.

emctl status oms -details

3. Start OMS

Starts the Oracle Management Server along with the WebTier.

emctl start oms

4. Stop OMS

Stops OMS, WebTier, and all associated services.

emctl stop oms -all

5. Restart OMS

Useful after configuration changes or troubleshooting.

emctl stop oms -all

emctl start oms

6. Secure OMS

Configures HTTPS communication for the Oracle Management Server.

emctl secure oms

7. Lock Agent Upload

Prevents Management Agents from uploading monitoring data to OMS.

emctl lock upload

8. Unlock Agent Upload

Allows Management Agents to resume uploading monitoring data.

emctl unlock upload

9. Lock Console

Temporarily disable user login to the OEM Console.

emctl lock console

10. Unlock Console

Re-enables user access to the OEM Console.

emctl unlock console

11. Check OMS Version

Displays the installed OEM version and build information.

emctl status oms -details

12. Synchronize OMS

Displays OMS configuration information.

emctl config oms

13. OMS Log Location

Display the logs of the OMS.

cd $GC_INST/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs

Useful OEM 13c Agent Commands

1. Check Agent Status

Displays the current status of the Oracle Management Agent.

emctl start agent

2. Stop Agent

Stops the Oracle Management Agent.

emctl stop agent

3. Restart Agent

Useful after configuration changes.

emctl stop agent

emctl start agent

4. Upload Agent Data

Immediately uploads monitoring data to OMS.

emctl upload agent

5. Clear Agent State

Clears the local upload queue and refreshes the agent state.

emctl clearstate agent

6. Resynchronize Agent

Synchronizes the agent with OMS.

emctl resync agent

7. Reload Dynamic Properties

Refreshes target properties without restarting the agent.

emctl reload agent dynamicproperties

8. Ping OMS

Verifies connectivity between the agent and OMS.

emctl pingOMS

9. Secure Agent

Configures secure communication between the agent and OMS.

emctl secure agent

10. Unsecure Agent

Removes secure communication.

emctl unsecure agent

11. List Agent Targets

Displays all targets monitored by the agent.

emctl config agent listtargets

12. Show Agent Properties

Displays the current agent properties.

emctl getproperty agent

13. Set Agent Property

Updates an agent property.

emctl setproperty agent

14. Agent Log Location

cd $AGENT_INSTANCE_HOME/sysman/log

Useful EMCLI Commands

1. Log in to EMCLI

emcli login -username=sysman

2. Synchronize EMCLI with OMS

emcli sync

3. Display supported operating systems

emcli get_supported_platforms

4. Download the latest Management Agent image

emcli get_agentimage

5. List all monitored targets

emcli list_targets

6. Display all deployed Management Agents.

emcli list_agents

7. Display OEM jobs

emcli list_jobs

8. Retrieve target information

emcli get_targets

Useful Linux Commands for OEM

1. Check listening ports

netstat -tulnp

2. Display active network sockets

ss -tulpn

3. Verify DNS resolution

nslookup hostname

4. Display the fully qualified hostname

hostname -f

5. Check filesystem usage

df -h

6. Check memory utilization

free -g

7. Verify firewall status

systemctl status firewalld

Conclusion

The OEM 13c Useful OMS and Agent Commands covered in this guide provide a quick reference for the most commonly used administration, monitoring, and troubleshooting commands in Oracle Enterprise Manager Cloud Control. From starting and stopping the Oracle Management Server to managing Management Agents, verifying communication, monitoring uploads, and using EMCLI, these commands are part of the daily toolkit for every Oracle DBA.

Keeping these commands readily available can significantly reduce troubleshooting time and simplify routine administration tasks. As your Oracle Enterprise Manager environment grows, this reference guide will serve as a convenient resource for managing OMS, Management Agents, and monitored targets efficiently.

Bookmark this page and refer to it whenever you need to verify agent status, troubleshoot connectivity, perform maintenance activities, or execute common OEM administration tasks.

DBAStack

I’m a database professional with more than 10 years of experience working with Oracle, MySQL, and other relational technologies. I’ve spent my career building, optimizing, and maintaining databases that power real-world applications. I started DBAStack to share what I’ve learned — practical tips, troubleshooting insights, and deep-dive tutorials — to help others navigate the ever-evolving world of databases with confidence.

1 thought on “OEM 13c Useful OMS and Agent Commands”

Leave a Comment