Problem:
在EM 13c上,查看主機服務,有發現 Agent has Been Blocked due to Bounce Counter Mismatch. If Agent Has Been Restored from a Backup Perform an Agent Resync的錯誤訊息,去檢查被監控主機的em agent,也有拋blocked錯誤
$ ./emctl status agent Oracle Enterprise Manager Cloud Control 13c Release 3 Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent is Not Running $ ./emctl start agent Oracle Enterprise Manager Cloud Control 13c Release 3 Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved. Starting agent ..................................... started. $ ./emctl status agent Oracle Enterprise Manager Cloud Control 13c Release 3 Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent Version : 13.3.0.0.0 OMS Version : (unknown) Protocol Version : 12.1.0.1.0 Agent Home : /usr/opt/oracle/agent13.3 Agent Log Directory : /usr/opt/oracle/agent13.3/sysman/log Agent Binaries : /usr/opt/oracle/agent13.3/agent_13.3.0.0.0 Core JAR Location : /usr/opt/oracle/agent13.3/agent_13.3.0.0.0/jlib Agent Process ID : 42205438 Parent Process ID : 23920806 Agent URL : https://pp5a:3872/emd/main/ Local Agent URL in NAT : https://pp5a:3872/emd/main/ Repository URL : https://emrep:1159/empbs/upload Started at : 2022-03-17 10:48:49 Started by user : oracle Operating System : AIX version 6.1 (ppc64) Number of Targets : 8 Last Reload : (none) Last successful upload : (none) Last attempted upload : 2022-03-17 10:49:13 Total Megabytes of XML files uploaded so far : 0 Number of XML files pending upload : 16 Size of XML files pending upload(MB) : 0.03 Available disk space on upload filesystem : 45.01% Collection Status : Collections enabled Heartbeat Status : Agent is blocked Blocked Reason : 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. Last attempted heartbeat to OMS : 2022-03-17 10:52:13 Last successful heartbeat to OMS : (none) Next scheduled heartbeat to OMS : 2022-03-17 10:55:13 --------------------------------------------------------------- Agent is Running and Ready
Soultion:
查了一下Oracle Support文件,重裝EM Agent可能比較快
Step 1. uninstall em agent
$ /usr/opt/oracle/agent13.3/agent_13.3.0.0.0/perl/bin/perl \ > /usr/opt/oracle/agent13.3/agent_13.3.0.0.0/sysman/install/AgentDeinstall.pl \ > -agentHome /usr/opt/oracle/agent13.3/agent_13.3.0.0.0 Agent Oracle Home: /usr/opt/oracle/agent13.3/agent_13.3.0.0.0 agentHome = /usr/opt/oracle/agent13.3/agent_13.3.0.0.0 Agent installed in config modevalue of skip flag is false NOTE: The agent base directory: /usr/opt/oracle/agent13.3 will be removed after successful deinstallation of agent home. The command is /usr/opt/oracle/agent13.3/agent_13.3.0.0.0/oracle_common/jdk/jre/bin/java -classpath /usr/opt/oracle/agent13.3/agent_13.3.0.0.0/oui/modules/OraInstaller.jar:/usr/opt/oracle/agent13.3/agent_13.3.0.0.0/oui/modules/emCfg.jar:/usr/opt/oracle/agent13.3/agent_13.3.0.0.0/jlib/agentInstaller.jar oracle.sysman.agent.installer.AgentDeinstallation /usr/opt/oracle/agent13.3/agent_13.3.0.0.0 /usr/opt/oracle/agent13.3 /usr/opt/oracle/agent_inst Mar 17, 2022 10:56:42 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run INFO: Oracle Enterprise Manager Cloud Control 13c Release 3 Mar 17, 2022 10:56:42 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run INFO: Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved. Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run INFO: Agent is Not Running Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run INFO: Plugin homes: Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentInstaller$StreamGobbler run INFO: Plugin homes: Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentInstaller execCommand SEVERE: STDERR: STDOUT= Oracle Enterprise Manager Cloud Control 13c Release 3 Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved. Agent is Not Running Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentDeinstallation main INFO: Creating directory /usr/opt/oracle/agent13.3/agent_13.3.0.0.0/install/tmp completed successfully. Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentDeinstallation main INFO: File /etc/oragchomelist exists. Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentDeinstallation main INFO: File /etc/oragchomelist is writable. Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentDeinstallation main INFO: Index :-1 for line : Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentDeinstallation main INFO: Index :-1 for line : Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentDeinstallation main INFO: Index :0 for line : /usr/opt/oracle/agent13.3/agent_13.3.0.0.0:/usr/opt/oracle/agent13.3 Mar 17, 2022 10:56:45 AM oracle.sysman.agent.installer.AgentDeinstallation main INFO: Overwriting the contents since oracle home:/usr/opt/oracle/agent13.3/agent_13.3.0.0.0 entry already exists. The output is Agent Deinstall:agent deintall has been started Executing status :0 Agent service stopped successfully. and the exit code is 0 Agent deconfiguration completed successfully. 0 DetachHome Command executed:/usr/opt/oracle/agent13.3/agent_13.3.0.0.0/oui/bin/detachHome.sh -silent ORACLE_HOME=/usr/opt/oracle/agent13.3/agent_13.3.0.0.0 WARNING: Ignoring ORACLE_HOME=<value> on the command line (cannot override the Oracle Home to be detached) Launcher log file is /tmp/OraInstall2022-03-17_10-56-47AM/launcher2022-03-17_10-56-47AM.log. Starting Oracle Universal Installer Checking swap space: must be greater than 500 MB. Actual 16384 MB Passed Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required) 'detachHome' was successful. Logs successfully copied to /usr/opt/oracle/oraInventory/logs. Removing other files ... cannot remove directory for /usr/opt/oracle/agent13.3: The file access permissions do not allow the specified action. at /usr/opt/oracle/agent13.3/agent_13.3.0.0.0/sysman/install/AgentDeinstall.pl line 469 NOTE: The targets monitored by this Management Agent will not be deleted in the Enterprise Manager Repository by this deinstall script. Make sure to delete the targets manually from the Cloud Control Console for a successful deinstallation.
Step 2. Agent Decommission from EM Cloud
Targets > All Targets > [right-click the agent target] > Target Setup > Agent Decommission...
or
Setup > Manage Cloud Control > Agents > [left-click the agent target] > Agent > Target Setup > Agent Decommission...
Step 3. Install Agent from EM Cloud
Setup > Add Target > Add Targets Manually > Add Host Targets > Install Agent on Host
參考來源:
After Restoring, the Agent is Blocked with: Agent has Been Blocked due to Bounce Counter Mismatch. If Agent Has Been Restored from a Backup Perform an Agent Resync (Doc ID 2611817.1)
EM 13c Agent Block With Error "Agent is out-of-sync with repository. This most likely means that the agent was reinstalled or recovered" (Doc ID 2642969.1)
0 留言