Oracle Cloud Control 12c agent ve oms servislerini aşağıdaki dizinlerde bulabilir, stop/start edebilirsiniz;

 

— ./emctl status agent
— ./emctl start agent
— ./emctl stop agent

— agent log: /oracle/app/Agent12c/agent_inst/sysman/log/tail -500f gcagent.log

ortst01p@oracle </oracle/app/agent12C/core/12.1.0.4.0/bin> ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Status agent Failure:unable to connect to http server at https://ortst01p:8821/emd/lifecycle/main/. [peer not authenticated]
ortst01p@oracle </oracle/app/agent12C/core/12.1.0.4.0/bin> uname -a
AIX ortst01p 1 6 00F814804C00
ortst01p@oracle </oracle/app/agent12C/core/12.1.0.4.0/bin> ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running
You have mail in /usr/spool/mail/oracle
ortst01p@oracle </oracle/app/agent12C/core/12.1.0.4.0/bin> ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.3.0
OMS Version : 12.1.0.4.0
Protocol Version : 12.1.0.1.0
Agent Home : /oracle/app/agent12C/agent_inst
Agent Binaries : /oracle/app/agent12C/core/12.1.0.3.0
Agent Process ID : 66257428
Parent Process ID : 31917048
Agent URL : https://ortst01p:8821/emd/main/
Repository URL : https://ordboem01:4903/empbs/upload
Started at : 2016-05-17 14:31:28
Started by user : oracle
Last Reload : (none)
Last successful upload : 2016-05-17 14:31:42
Last attempted upload : 2016-05-17 14:31:42
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 1
Size of XML files pending upload(MB) : 0.02
Available disk space on upload filesystem : 100.00%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2016-05-17 14:31:40
Last successful heartbeat to OMS : 2016-05-17 14:31:40
Next scheduled heartbeat to OMS : 2016-05-17 14:32:41

---------------------------------------------------------------
Agent is Running and Ready
ortst01p@oracle </oracle/app/agent12C/core/12.1.0.4.0/bin>


-- agent location
cd /u01/app/oracle/Agent12c/core/12.1.0.4.0/bin
[oracle@oradbtst bin]$ ./emctl status agent

-- agent log
cd /u01/app/oracle/Agent12c/agent_inst/sysman/log

tail -1000f gcagent.log

 

--- 1.node:

ordbtst01p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin> ./emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
ordbtst01p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin> ./emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Starting agent ................................... started.
ordbtst01p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin> ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.4.0
OMS Version : 12.1.0.4.0
Protocol Version : 12.1.0.1.0
Agent Home : /oracle/app/Agent12c/agent_inst
Agent Log Directory : /oracle/app/Agent12c/agent_inst/sysman/log
Agent Binaries : /oracle/app/Agent12c/core/12.1.0.4.0
Agent Process ID : 20840548
Parent Process ID : 22282328
Agent URL : https://ordbtst01p:8721/emd/main/
Local Agent URL in NAT : https://ordbtst01p:8721/emd/main/
Repository URL : https://ordboem01:4903/empbs/upload
Started at : 2016-10-27 14:00:43
Started by user : oracle
Operating System : AIX version 6.1 (ppc64)
Last Reload : (none)
Last successful upload : 2016-10-27 14:02:50
Last attempted upload : 2016-10-27 14:02:50
Total Megabytes of XML files uploaded so far : 0.11
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 23.34%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2016-10-27 14:02:08
Last successful heartbeat to OMS : 2016-10-27 14:02:08
Next scheduled heartbeat to OMS : 2016-10-27 14:03:08

---------------------------------------------------------------
Agent is Running and Ready
ordbtst01p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin>

 

-- 2.node:

ordbtst02p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin> ./emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
ordbtst02p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin> ./emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Starting agent ................................... started.
ordbtst02p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin> ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.4.0
OMS Version : 12.1.0.4.0
Protocol Version : 12.1.0.1.0
Agent Home : /oracle/app/Agent12c/agent_inst
Agent Log Directory : /oracle/app/Agent12c/agent_inst/sysman/log
Agent Binaries : /oracle/app/Agent12c/core/12.1.0.4.0
Agent Process ID : 21627038
Parent Process ID : 3080488
Agent URL : https://ordbtst02p:8721/emd/main/
Local Agent URL in NAT : https://ordbtst02p:8721/emd/main/
Repository URL : https://ordboem01:4903/empbs/upload
Started at : 2016-10-27 14:02:24
Started by user : oracle
Operating System : AIX version 6.1 (ppc64)
Last Reload : (none)
Last successful upload : 2016-10-27 14:02:51
Last attempted upload : 2016-10-27 14:02:51
Total Megabytes of XML files uploaded so far : 0.03
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 14.30%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2016-10-27 14:02:49
Last successful heartbeat to OMS : 2016-10-27 14:02:49
Next scheduled heartbeat to OMS : 2016-10-27 14:03:49

---------------------------------------------------------------
Agent is Running and Ready
ordbtst02p@oracle </oracle/app/Agent12c/core/12.1.0.4.0/bin>

 

---#### OEM agent ve oms stop-start

[oracle@ordboem01 ~]$ echo $AGENT_HOME
/oracle/app/oracle/Middleware/agent12c/core/12.1.0.3.0
[oracle@ordboem01 ~]$ echo $OMS_HOME
/oracle/app/oracle/Middleware/oms12cR4/oms
[oracle@ordboem01 ~]$ $AGENT_HOME/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3 
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
[oracle@ordboem01 ~]$ $AGENT_HOME/bin/emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 3 
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Starting agent .............................. started.
[oracle@ordboem01 ~]$ $OMS_HOME/bin/emctl status oms
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
[oracle@ordboem01 ~]$ $OMS_HOME/bin/emctl stop oms
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
[oracle@ordboem01 ~]$ $OMS_HOME/bin/emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Starting Oracle Management Server...
Starting WebTier...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
[oracle@ordboem01 ~]$ $OMS_HOME/bin/emctl status oms
Oracle Enterprise Manager Cloud Control 12c Release 4 
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
[oracle@ordboem01 ~]$