Oracle Enterprise Manager Cloud Control 13c部署文档(三)——Windows添加目标代理

7 篇文章 1 订阅

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

一般在安装的时候可能会报错,基本上报错信息都会显示出来,根据报错信息处理报错。

 

 

 

 

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值