oralce11g agent与oms无法连接

2台服务器,一台装GC,另一台安装agent后,发现启动运行都是正常的,但是oms就是找不到agent主机


oracle@devdb1 bin]$ ./emctl status agent

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0 
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 11.1.0.1.0
OMS Version       : 11.1.0.1.0
Protocol Version  : 11.1.0.0.0
Agent Home        : /u01/app/oracle/product/middleware/agent11g
Agent binaries    : /u01/app/oracle/product/middleware/agent11g
Agent Process ID  : 15993
Parent Process ID : 15960
Agent URL         : http://devdb1:3872/emd/main/
Repository URL    : https://oms:7799/em/upload/
Started at        : 2015-08-11 21:01:32
Started by user   : oracle
Last Reload       : 2015-08-11 21:05:23
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far :     0.00
Number of XML files pending upload           :       41
Size of XML files pending upload(MB)         :    14.62
Available disk space on upload filesystem    :    27.21%
Last attempted heartbeat to OMS              : 2015-08-11 21:05:42
Last successful heartbeat to OMS             : unknown

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

从上面可以看出 虽然agent正常运行,但是无法连接到oms


[oracle@devdb1 bin]$ ./emctl secure agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0 
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Agent successfully stopped...   Done.
Securing agent...   Started.
Enter Agent Registration Password : 
Agent successfully restarted...   Done.
Securing agent...   Failed.

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


[oracle@rac1 ~]$ $AGENT_HOME/bin/emctl upload agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet.

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

oracle@devdb1 bin]$ ./emctl verifykey
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0 
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.


-----------------------------------------------------
verifykey: Successfully Completed communication with agent 
EMD pingOMS error: SSL handshake failure between OMS https://oms:7799/em/upload/ and Agent , err -10


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

最后发现是SSH握手失败,而造成握手失败的原因是,2台服务器的日期不一起,修改日期后,通信正常了。



版权声明:本文为qq_22310953原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。