1,目标端配置hosts
2,目标端安装agent软件
在目标机上创建安装agent的目录
将第一步下载的agent软件拷贝到目标端,解压安装
修改agent.rsp文件,添加如下内容
ORACLE_HOME=D:\app\agent13c\agent_13.3.0.0.0 --目录名必须为agent_13.3.0.0.0,不然报错
OMS_HOST=gridcontrol --OMS主机名
EM_UPLOAD_PORT=4903 --OMS默认端口
AGENT_REGISTRATION_PASSWORD=sysman12 --注册口令,在OMS服务端设置
AGENT_INSTANCE_HOME=D:\app\agent13c\agent_inst --agent实例目录
AGENT_PORT=3872 --OMS默认端口
b_startAgent=true
ORACLE_HOSTNAME=SER-XAGS-BACK.localdomain --主机名(必须带域名,不然检测不用过)
s_agentHomeName=gridcontrol --目标主机名
s_agentServiceName=Oracleagent13cAgent --服务名称
cmd下执行下面命令安装:
D:\app\p28239183_112000_Generic\archives\13.3.0.0.0_AgentCore_233>agentDeploy.bat AGENT_BASE_DIR=D:\app\agent13c RESPONSE_FILE=D:\agent13\p28239183_112000_Generic\archives\13.3.0.0.0_AgentCore_233\agent.rsp
安装成功后在服务中可以看到agent服务
3. 目标端开启agent服务
右击服务点启动即可
启动后通过命令行查看agent状态
D:\app\agent13c\agent_inst\bin>emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.3.0.0.0
OMS Version : 13.3.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : D:/app/agent13c/agent_inst
Agent Log Directory : D:/app/agent13c/agent_inst\sysman\log
Agent Binaries : D:\app\agent13c\agent_13.3.0.0.0
Core JAR Location : D:\app\agent13c\agent_13.3.0.0.0\jlib
Agent Process ID : 6820
Parent Process ID : 6724
Agent URL : https://SER-XAGS-BACK.localhost:3872/emd/main/
Local Agent URL in NAT : https://SER-XAGS-BACK.localhost:3872/emd/main/
Repository URL : https://gridcontrol:4903/empbs/upload
Started at : 2019-08-14 19:04:51
Started by user : SER-XAGS-BACK$
Operating System : Windows version 6.3 (amd64)
Number of Targets : (none)
Last Reload : (none)
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 66.08%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2019-08-14 19:07:03
Last successful heartbeat to OMS : 2019-08-14 19:07:03
Next scheduled heartbeat to OMS : 2019-08-14 19:08:03
---------------------------------------------------------------
Agent is Running and Ready
添加网络目标
D:\app\agent13c\agent_inst\bin>emctl config agent addinternaltargets
D:\app\agent13c\agent_inst\bin>emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.3.0.0.0
OMS Version : 13.3.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : D:/app/agent13c/agent_inst
Agent Log Directory : D:/app/agent13c/agent_inst\sysman\log
Agent Binaries : D:\app\agent13c\agent_13.3.0.0.0
Core JAR Location : D:\app\agent13c\agent_13.3.0.0.0\jlib
Agent Process ID : 6820
Parent Process ID : 6724
Agent URL : https://SER-XAGS-BACK.localhost:3872/emd/main/
Local Agent URL in NAT : https://SER-XAGS-BACK.localhost:3872/emd/main/
Repository URL : https://gridcontrol:4903/empbs/upload
Started at : 2019-08-14 19:04:51
Started by user : SER-XAGS-BACK$
Operating System : Windows version 6.3 (amd64)
Number of Targets : (none)
Last Reload : (none)
Last successful upload : 2019-08-14 19:08:46
Last attempted upload : 2019-08-14 19:08:46
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 66.08%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2019-08-14 19:09:03
Last successful heartbeat to OMS : 2019-08-14 19:09:03
Next scheduled heartbeat to OMS : 2019-08-14 19:10:03
---------------------------------------------------------------
Agent is Running and Ready
一般在安装的时候可能会报错,基本上报错信息都会显示出来,根据报错信息处理报错。