How to start/stop/ check status of OMS and Agent in OEM 13c

 

How to start/stop/ check status of OMS and Agent in OEM 13c

 

To start  Oracle Management Server(OMS), login to oem server.

Navigate to oracle middleware home

export MW_HOME= /data2/app/oracle/middleware

cd $MW_HOME/bin

[oem@ccuine25 bin]$ ./emctl start oms

Oracle Enterprise Manager Cloud Control 13c Release 5

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

Starting Oracle Management Server...

WebTier Successfully Started

Oracle Management Server Successfully Started

Oracle Management Server is Up

JVMD Engine is Up

 

To Check status of OMS

cd $MW_HOME/bin

[oem@ccuine25 bin]$ ./emctl status oms -details

Oracle Enterprise Manager Cloud Control 13c Release 5

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

Enter Enterprise Manager Root (SYSMAN) Password :

Console Server Host        : ccuine25.xyz.co.in

HTTP Console Port          : 7788

HTTPS Console Port         : 7803

HTTP Upload Port           : 4889

HTTPS Upload Port          : 4903

EM Instance Home           : /data2/app/oracle/gc_inst/em/EMGC_OMS1

OMS Log Directory Location : /data2/app/oracle/gc_inst/em/EMGC_OMS1/sysman/log

OMS is not configured with SLB or virtual hostname

Agent Upload is locked.

OMS Console is locked.

Active CA ID: 1

Console URL: https://ccuine25.xyz.co.in:7803/em

Upload URL: https://ccuine25.xyz.co.in:4903/empbs/upload

 

WLS Domain Information

Domain Name            : GCDomain

Admin Server Host      : ccuine25.xyz.co.in

Admin Server HTTPS Port: 7102

Admin Server is RUNNING

 

Oracle Management Server Information

Managed Server Instance Name: EMGC_OMS1

Oracle Management Server Instance Host: ccuine25.xyz.co.in

WebTier is Up

Oracle Management Server is Up

JVMD Engine is Up

 

To Shutdown OMS:-

cd $MW_HOME/bin

[oem@ccuine25 bin]$ ./emctl stop oms -all

Oracle Enterprise Manager Cloud Control 13c Release 5

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

Stopping Oracle Management Server...

WebTier Successfully Stopped

Oracle Management Server Successfully Stopped

AdminServer Successfully Stopped

Oracle Management Server is Down

JVMD Engine is Down

 

To Start OEM agent (In Target Server):-

export AGENT_HOME=/DEV/agent/emagent/agent_inst

cd $AGENT_HOME/bin

[r12devdb@ccuine14 bin]$ ./emctl start agent

Oracle Enterprise Manager Cloud Control 13c Release 5

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

Starting agent ........ started.

 

To Stop OEM agent (In Target Server):-

cd $AGENT_HOME/bin

[r12devdb@ccuine14 bin]$ ./emctl stop agent

Oracle Enterprise Manager Cloud Control 13c Release 5

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

Stopping agent ... stopped.

 

To check status of OEM agent(In Target Server):-

cd $AGENT_HOME/bin

[r12devdb@ccuine14 bin]$ ./emctl status agent

Oracle Enterprise Manager Cloud Control 13c Release 5

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

---------------------------------------------------------------

Agent Version          : 13.5.0.0.0

OMS Version            : 13.5.0.0.0

Protocol Version       : 12.1.0.1.0

Agent Home             : /DEV/agent/emagent/agent_inst

Agent Log Directory    : /DEV/agent/emagent/agent_inst/sysman/log

Agent Binaries         : /DEV/agent/emagent/agent_13.5.0.0.0

Core JAR Location      : /DEV/agent/emagent/agent_13.5.0.0.0/jlib

Agent Process ID       : 5265

Parent Process ID      : 5115

Agent URL              : https://ccuine14.xyz.co.in:3872/emd/main/

Local Agent URL in NAT : https://ccuine14.xyz.co.in:3872/emd/main/

Repository URL         : https://ccuine25.xyz.co.in:4903/empbs/upload

Started at             : 2021-12-22 10:48:33

Started by user        : r12devdb

Operating System       : Linux version 3.10.0-1062.el7.x86_64 (amd64)

Number of Targets      : 5

Last Reload            : (none)

Last successful upload                       : 2021-12-22 12:59:38

Last attempted upload                        : 2021-12-22 12:59:38

Total Megabytes of XML files uploaded so far : 5.58

Number of XML files pending upload           : 0

Size of XML files pending upload(MB)         : 0

Available disk space on upload filesystem    : 24.53%

Collection Status                            : Collections enabled

Heartbeat Status                             : Ok

Last attempted heartbeat to OMS              : 2021-12-22 13:00:24

Last successful heartbeat to OMS             : 2021-12-22 13:00:24

Next scheduled heartbeat to OMS              : 2021-12-22 13:01:24

 

---------------------------------------------------------------

Agent is Running and Ready

 

 


No comments:

Post a Comment