问题描述:这个问题是在正常装Oms以及手工安装代理后发现gc上没有所有管理的主机,但是agent及oms的检查均正常,最后经过执行安全认证解决。
检查未发现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]$
最后检查: