In this tutorial we will see how we can check our monitoring agent status.
[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
./emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
./emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Starting agent ........................ started.
./emctl pingOMS
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD pingOMS completed successfully