[oracle@omsserver bin]$ cd /u01/software/em13c/oraclehome/bin
[oracle@omsserver bin]$ ./emctl getversion oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Oracle Enterprise Manager Cloud Control OMS 13c Release 4
[oracle@omsserver bin]$
—查看OMS状态
[oracle@omsserver bin]$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Up
—查看OMS详细信息
[oracle@omsserver bin]$ ./emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : omsserver.sztech.com
HTTP Console Port : 7788
HTTPS Console Port : 7803
HTTP Upload Port : 4889
HTTPS Upload Port : 4903
EM Instance Home : /u01/software/em13c/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/software/em13c/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://omsserver.sztech.com:7803/em
Upload URL: https://omsserver.sztech.com:4903/empbs/upload
WLS Domain Information
Domain Name : GCDomain
Admin Server Host : omsserver.sztech.com
Admin Server HTTPS Port: 7102
Admin Server is RUNNING
Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: omsserver.sztech.com
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server Information
BI Publisher Managed Server Name: BIP
BI Publisher Server is Up
BI Publisher HTTP Managed Server Port : 9701
BI Publisher HTTPS Managed Server Port : 9803
BI Publisher HTTP OHS Port : 9788
BI Publisher HTTPS OHS Port : 9851
BI Publisher is locked.
BI Publisher Server named 'BIP' running at URL: https://omsserver.sztech.com:9851/xmlpserver/servlet/home
BI Publisher Server Logs: /u01/software/em13c/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/
BI Publisher Log : /u01/software/em13c/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/bipublisher/bipublisher.log
[oracle@omsserver bin]$
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
JVMD Engine is Down
[oracle@omsserver bin]$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Down
JVMD Engine is Down
BI Publisher Server is Up
[oracle@omsserver bin]$ ./emctl start oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 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
Starting BI Publisher Server ...
BI Publisher Server Already Started
BI Publisher Server is Up
[oracle@omsserver bin]$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Up
—查看agent版本
[oracle@omsserver ~]$ cd /u01/software/em13c/agentbasedir/agent_13.4.0.0.0/bin
[oracle@omsserver bin]$ ./emctl getversion agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Oracle Enterprise Manager Cloud Control Agent 13c Release 4
[oracle@omsserver bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.4.0.0.0
OMS Version : 13.4.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/software/em13c/agentbasedir/agent_inst
Agent Log Directory : /u01/software/em13c/agentbasedir/agent_inst/sysman/log
Agent Binaries : /u01/software/em13c/agentbasedir/agent_13.4.0.0.0
Core JAR Location : /u01/software/em13c/agentbasedir/agent_13.4.0.0.0/jlib
Agent Process ID : 198591
Parent Process ID : 198549
Agent URL : https://omsserver.sztech.com:3872/emd/main/
Local Agent URL in NAT : https://omsserver.sztech.com:3872/emd/main/
Repository URL : https://omsserver.sztech.com:4903/empbs/upload
Started at : 2021-01-20 02:42:00
Started by user : oracle
Operating System : Linux version 5.4.17-2011.7.4.el8uek.x86_64 (amd64)
Number of Targets : 56
Last Reload : (none)
Last successful upload : 2021-01-20 10:27:30
Last attempted upload : 2021-01-20 10:27:30
Total Megabytes of XML files uploaded so far : 5.04
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 25.63%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2021-01-20 10:30:06
Last successful heartbeat to OMS : 2021-01-20 10:30:06
Next scheduled heartbeat to OMS : 2021-01-20 10:31:06
---------------------------------------------------------------
Agent is Running and Ready
—停启agent
./emctl stop agent
./emctl start agent
[oracle@omsserver bin]$ ./emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.
[oracle@omsserver bin]$
[oracle@omsserver bin]$
[oracle@omsserver bin]$
[oracle@omsserver bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running
[oracle@omsserver bin]$ ./emctl start agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Starting agent ................... started.
—测试agent和OMS连通性
[oracle@omsserver bin]$ ./emctl pingOMS
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD pingOMS completed successfully
—上传agent到服务端
[oracle@omsserver bin]$ ./emctl upload agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
[oracle@omsserver bin]$
[oracle@omsserver bin]$
[oracle@omsserver bin]$
[oracle@omsserver bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.4.0.0.0
OMS Version : 13.4.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/software/em13c/agentbasedir/agent_inst
Agent Log Directory : /u01/software/em13c/agentbasedir/agent_inst/sysman/log
Agent Binaries : /u01/software/em13c/agentbasedir/agent_13.4.0.0.0
Core JAR Location : /u01/software/em13c/agentbasedir/agent_13.4.0.0.0/jlib
Agent Process ID : 326637
Parent Process ID : 326592
Agent URL : https://omsserver.sztech.com:3872/emd/main/
Local Agent URL in NAT : https://omsserver.sztech.com:3872/emd/main/
Repository URL : https://omsserver.sztech.com:4903/empbs/upload
Started at : 2021-01-20 10:31:31
Started by user : oracle
Operating System : Linux version 5.4.17-2011.7.4.el8uek.x86_64 (amd64)
Number of Targets : 56
Last Reload : (none)
Last successful upload : 2021-01-20 10:33:50
Last attempted upload : 2021-01-20 10:33:50
Total Megabytes of XML files uploaded so far : 0.06
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 25.62%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2021-01-20 10:33:44
Last successful heartbeat to OMS : 2021-01-20 10:33:44
Next scheduled heartbeat to OMS : 2021-01-20 10:34:45
---------------------------------------------------------------
Agent is Running and Ready
[oracle@omsserver bin]$ ./emctl stop oms -all
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Stopping Oracle Management Server...
WebTier Successfully Stopped
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
JVMD Engine is Down
Stopping BI Publisher Server...
BI Publisher Server Successfully Stopped
AdminServer Successfully Stopped
BI Publisher Server is Down
[oracle@omsserver bin]$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
WebTier is Down
Oracle Management Server is Down
JVMD Engine is Down
BI Publisher Server is Down
[oracle@omsserver bin]$ ./emctl start oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 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
Starting BI Publisher Server ...
BI Publisher Server Successfully Started
BI Publisher Server is Up
[oracle@omsserver bin]$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Up
[oracle@omsserver bin]$