Grid Control服務端看不到Agent相關資訊,同時OMS狀態為unknown處理

tangyunoracle發表於2014-01-04
一次Grid Control的agent是啟動的,但是在GC服務端看不到相關資訊,而且OMS端狀態不正確問題處理過程。
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /opt/oracle/agentbase/agent10g
Agent binaries    : /opt/oracle/agentbase/agent10g
Agent Process ID  : 214
Parent Process ID : 1
Agent URL         :
Repository URL    :
Started at        : 2011-05-26 14:11:33
Started by user   : oraagent
Last Reload       : 2011-05-26 14:11:33
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far :     0.00
Number of XML files pending upload           :     1045
Size of XML files pending upload(MB)         :    50.07
Available disk space on upload filesystem    :    15.79%
Collection Status                            : Disabled by Upload Manager
Last attempted heartbeat to OMS              : 2011-07-18 11:25:02
Last successful heartbeat to OMS             : unknown
---------------------------------------------------------------
Agent is Running and Ready
----這裡可以看到agent其實是不正常的:Last successful heartbeat to OMS             : unknown
嘗試upload,結果報錯:
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl upload
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..

參看agent日誌:
 2011-07-18 14:09:30,715 Thread-94 ERROR pingManager: Did not receive valid response to ping "ERROR-Agent is blocked. Blocked reason is: Agent is out-of-sync with repository. This most likely means that the agent was reinstalled or recovered. Please contact an EM administrator to unblock the agent by performing an agent resync from the console. Please contact EM adminstrator to unblock the agent"
 
在GC伺服器上重新Resynchronize一下。
+ Navigate to Setup -> Agents -> Click on problematic Agent name
+ In Agent home page click on "Resynchronize" Button on right hand top of the page.
Choose the 'Unblock Agent' option and click Continue
Ensure that the Agent is up and running when attempting the Resynchronization.
Once the re-synchronization is completed successfully, the Agent should be able to communicate with the OMS.
結果報錯如下:
The Oracle Management Server(OMS) has blocked this agent because it has either been reinstalled or restored from a filesystem backup. It appears that you
have already run an Agent Resynchronization against this agent. Please correct any errors that may have occured during that resync, and then manually unblock
the agent using the Unblock button below.
  Agent Operation completed with errors. For those targets that could not be saved, please go to the target's monitoring configuration page to save them. All
other targets have been saved successfully. Agent has not been unblocked.
  Error saving target rpt_cog0:oracle_database - Skipping target {rpt_cog0, oracle_database}: Missing properties - password
  這裡點選GC端的的unlock按鈕。
  然後重新secure一下:
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl stop agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl secure agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Agent is already stopped...   Done.
Securing agent...   Started.
Enter Agent Registration Password :           
Securing agent...   Successful.
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl start agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Starting agent ................ started.

在GC伺服器上重新Resynchronize一下, 然後點選GC端的的unlock按鈕。
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /opt/oracle/agentbase/agent10g
Agent binaries    : /opt/oracle/agentbase/agent10g
Agent Process ID  : 7859
Parent Process ID : 7809
Agent URL         :
Repository URL    :
Started at        : 2011-07-18 14:34:53
Started by user   : oraagent
Last Reload       : 2011-07-18 14:35:57
Last successful upload                       : 2011-07-18 14:42:09
Total Megabytes of XML files uploaded so far :    10.19
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    16.19%
Last successful heartbeat to OMS             : 2011-07-18 14:43:44
---------------------------------------------------------------
Agent is Running and Ready
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl upload
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
參考文件:

===========================End=======================================

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24930246/viewspace-1067207/,如需轉載,請註明出處,否則將追究法律責任。

相關文章