GC安装错误2:agent安装后GC上找不到主机

69 篇文章 0 订阅
13 篇文章 0 订阅

问题描述:这个问题是在正常装Oms以及手工安装代理后发现gc上没有所有管理的主机,但是agentoms的检查均正常,最后经过执行安全认证解决。

检查未发现dbserver1

 

查看代理:

[oracle@dbserver1 ~]$ cd /apps/oracle/OracleHomes/agent10g/

 [oracle@dbserver1 agent10g]$ cd bin/

[oracle@dbserver1 bin]$ ./emctl status agent

Oracle Enterprise Manager 10g Release 10.2.0.1.0. 

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

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

Agent Version     : 10.2.0.1.0

OMS Version       : 10.2.0.1.0

Protocol Version  : 10.2.0.0.0

Agent Home        : /apps/oracle/OracleHomes/agent10g

Agent binaries    : /apps/oracle/OracleHomes/agent10g

Agent Process ID  : 6601

Parent Process ID : 6583

Agent URL         : http://dbserver1:3872/emd/main/

Repository URL    : http://dbserver2:4890/em/upload/

Started at        : 2012-04-13 16:00:22

Started by user   : oracle

Last Reload       : 2012-04-13 16:00:22

Last successful upload                       : (none)

Last attempted upload                        : (none)

Total Megabytes of XML files uploaded so far :     0.00

Number of XML files pending upload           :       40

Size of XML files pending upload(MB)         :    10.54

Available disk space on upload filesystem    :    36.68%

Last successful heartbeat to OMS             : 2012-04-13 16:01:01

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

Agent is Running and Ready

 

查看OMS进程:

 

dbserver2->cd opmn/bin/

dbserver2->./opmnctl status

 

Processes in Instance: EnterpriseManager0.dbserver2

-------------------+--------------------+---------+---------

ias-component      | process-type       |     pid | status 

-------------------+--------------------+---------+---------

DSA                | DSA                |     N/A | Down   

HTTP_Server        | HTTP_Server        |   24863 | Alive  

LogLoader          | logloaderd         |     N/A | Down   

dcm-daemon         | dcm-daemon         |    4528 | Alive  

OC4J               | home               |   24864 | Alive  

OC4J               | OC4J_EM            |    4610 | Alive  

OC4J               | OC4J_EMPROV        |   24868 | Alive  

WebCache           | WebCache           |   10686 | Alive  

WebCache           | WebCacheAdmin      |   24869 | Alive  

 

dbserver2->./opmnctl startproc ias-component="LogLoader"

opmnctl: starting opmn managed processes...

dbserver2->./opmnctl status

 

Processes in Instance: EnterpriseManager0.dbserver2

-------------------+--------------------+---------+---------

ias-component      | process-type       |     pid | status 

-------------------+--------------------+---------+---------

DSA                | DSA                |     N/A | Down   

HTTP_Server        | HTTP_Server        |   24863 | Alive  

LogLoader          | logloaderd         |    4724 | Alive  

dcm-daemon         | dcm-daemon         |    4528 | Alive  

OC4J               | home               |   24864 | Alive  

OC4J               | OC4J_EM            |    4610 | Alive  

OC4J               | OC4J_EMPROV        |   24868 | Alive  

WebCache           | WebCache           |   10686 | Alive  

WebCache           | WebCacheAdmin      |   24869 | Alive  

 

dbserver2->./opmnctl startproc ias-component="DSA"

opmnctl: starting opmn managed processes...

dbserver2->./opmnctl status

 

Processes in Instance: EnterpriseManager0.dbserver2

-------------------+--------------------+---------+---------

ias-component      | process-type       |     pid | status 

-------------------+--------------------+---------+---------

DSA                | DSA                |    4782 | Alive  

HTTP_Server        | HTTP_Server        |   24863 | Alive  

LogLoader          | logloaderd         |    4724 | Alive  

dcm-daemon         | dcm-daemon         |    4528 | Alive  

OC4J               | home               |   24864 | Alive  

OC4J               | OC4J_EM            |    4610 | Alive  

OC4J               | OC4J_EMPROV        |   24868 | Alive  

WebCache           | WebCache           |   10686 | Alive  

WebCache           | WebCacheAdmin      |   24869 | Alive  

 

UPLOAD:

 

手工UPLOAD

[oracle@dbserver1 bin]$ ./emctl upload

Oracle Enterprise Manager 10g Release 10.2.0.1.0. 

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

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

EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..

经过以上的检查发现agent正常,oms正常,但就是找不到这个agent,最后经过执行安装认证解决了这个问题:

 

执行安装认证:

[oracle@dbserver1 bin]$ ./emctl secure agent

Oracle Enterprise Manager 10g Release 10.2.0.1.0. 

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

Enter Agent Registration password :

Agent successfully stopped...   Done.

Securing agent...   Started.

Requesting an HTTPS Upload URL from the OMS...   Done.

Requesting an Oracle Wallet and Agent Key from the OMS...   Done.

Check if HTTPS Upload URL is accessible from the agent...   Done.

Configuring Agent for HTTPS in CENTRAL_AGENT mode...   Done.

EMD_URL set in /apps/oracle/OracleHomes/agent10g/sysman/config/emd.properties

Securing agent...   Successful.

Failed to restart agent...

[oracle@dbserver1 bin]$

最后检查:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值