How to troubleshoot the OEM 12C Monitoring Agent

In this tutorial we will see how we can check our monitoring agent status.

  • 1-To see agent status use the following command:
Syntax: .../emctl status agent
[oracle@host bin]$ /u00/agent12/core/12.1.0.2.0/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.2.0
OMS Version       : 12.1.0.2.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u00/agent12/agent_inst
Agent Binaries    : /u00/agent12/core/12.1.0.2.0
Agent Process ID  : 25925
Parent Process ID : 25860
Agent URL         : https://host:3872/emd/main/
Repository URL    : https://host:4901/empbs/upload
Started at        : 2013-08-14 14:17:47
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2013-08-14 14:19:40
Last attempted upload                        : 2013-08-14 14:19:40
Total Megabytes of XML files uploaded so far : 0.05
Number of XML files pending upload           : 14
Size of XML files pending upload(MB)         : 0.01
Available disk space on upload filesystem    : 45.98%
Collection Status                            : Collections enabled
Heartbeat Status                             : OMS is unreachable
Last attempted heartbeat to OMS              : 2013-08-14 14:24:36
Last successful heartbeat to OMS             : 2013-08-14 14:19:05
Next scheduled heartbeat to OMS              : 2013-08-14 14:25:06
---------------------------------------------------------------
Agent is Running and Ready
You can see that the agent is up and running and as well some metrics regarding the local host status, user who has administrative rights on it. heartbeat status.
  • 2-To stop the agent
Syntax: .../emctl stop agent
 ./emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Stopping agent ..... stopped.
  • 3-To start the agent
Syntax: .../emctl start agent
 ./emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Starting agent ........................ started.
  • 4-To upload the agent
Use this command to force an immediate upload of the current management data from the managed host to the Management Service. Use this command instead of waiting until the next scheduled upload of the data. Syntax: .../emctl upload < pre class="prettyprint linenums lang-sql"> ./emctl upload Oracle Enterprise Manager Cloud Control 12c Release 3

Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.

EMD upload completed successfully
  • 5-Check Agent OMS communication
Pings the OMS to check if the agent is able to connect to the OMS. Agent will wait for the reverse ping from the OMS so that agent can say the pingOMS is successful. Syntax: .../emctl pingOMS
 ./emctl pingOMS
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD pingOMS completed successfully