[oracle@node2-prod1 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/agenthome/agent11g
Agent binaries : /u01/app/oracle/agenthome/agent11g
Agent Process ID : 16033
Parent Process ID : 16011
Agent URL : https://node2.us.oracle.com:3872/emd/main/
Repository URL : https://edsir1p8.us.oracle.com:4900/em/upload
Started at : 2015-07-08 14:09:31
Started by user : oracle
Last Reload : 2015-07-08 14:16:21
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
**Number of XML files pending upload : 60**
Size of XML files pending upload(MB) : 18.71
Available disk space on upload filesystem : 83.22%
Last attempted heartbeat to OMS : 2015-07-08 14:30:57
Last successful heartbeat to OMS : unknown
---------------------------------------------------------------
Agent is Running and Ready
[oracle@node2-prod1 bin]$ ./emctl upload
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet. If this issue persists check trace files for ping to OMS related errors.
[oracle@node2-prod1 bin]$ ./emctl upload
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet. If this issue persists check trace files for ping to OMS related errors.
[oracle@node2-prod1 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: Invalid ping response "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中,
setup–>agent 找到未同步的agent,执行agent resynchronization