二,部署agent 施工中。。。。。。
1.1 检查em13c 状态
第一步先把要监控的主机ip,互相加进hosts里,windows主机起个域名,方便部署agent
# su - oracle
$ cd /u02/em13c/middleware/bin/
[oracle@em13c bin]$ ./emctl status oms(检查oms)
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
[oracle@em13c bin]$ ./emctl status oms -details(查看oms详细信息)
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password : oracle_4U
Console Server Host : em13c.mh.com
HTTP Console Port : 7788
HTTPS Console Port : 7803
HTTP Upload Port : 4889
HTTPS Upload Port : 4903
EM Instance Home : /u02/em13c/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u02/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://em13c.mh.com:7803/em
Upload URL: https://em13c.mh.com:4903/empbs/upload
WLS Domain Information
Domain Name : GCDomain
Admin Server Host : em13c.mh.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: em13c.mh.com
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
$ cd /u02/em13c/agent/agent_13.5.0.0.0/bin/
[oracle@em13c bin]$ ./emctl start agent(检查agent)
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Agent is already running
[oracle@em13c 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 : /u02/em13c/agent/agent_inst
Agent Log Directory : /u02/em13c/agent/agent_inst/sysman/log
Agent Binaries : /u02/em13c/agent/agent_13.5.0.0.0
Core JAR Location : /u02/em13c/agent/agent_13.5.0.0.0/jlib
Agent Process ID : 4378
Parent Process ID : 2462
Agent URL : https://em13c.mh.com:3872/emd/main/
Local Agent URL in NAT : https://em13c.mh.com:3872/emd/main/
Repository URL : https://em13c.mh.com:4903/empbs/upload
Started at : 2022-07-22 17:37:16
Started by user : oracle
Operating System : Linux version 3.10.0-1160.el7.x86_64 (amd64)
Number of Targets : 36
Last Reload : (none)
Last successful upload : 2022-07-22 17:50:34
Last attempted upload : 2022-07-22 17:50:34
Total Megabytes of XML files uploaded so far : 1.41
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 81.75%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2022-07-22 17:50:29
Last successful heartbeat to OMS : 2022-07-22 17:50:29
Next scheduled heartbeat to OMS : 2022-07-22 17:51:29
---------------------------------------------------------------
Agent is Running and Ready
[oracle@em13c bin]$ ./emctl getversion agent(检查agent版本)
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Oracle Enterprise Manager Cloud Control Agent 13c Release 5
1.2 访问em13c管理网页
https://192.168.133.141:7803/em
|