首页 » ORACLE 9i-23c » EM agent 12.1 割接主机后重部署 agent is blocked, and “out-of-sync with repository”

EM agent 12.1 割接主机后重部署 agent is blocked, and “out-of-sync with repository”

ORACLE DB 有时出于硬件维护等情况需要更换主机操作,但IP,DB实例等都未改变, 这时在割接后的机器需要重新部署EM_AGENT , 我通常是离线安装, 离线安装EM ANGENT 12参考我之前的笔记Acquiring Management Agent Software for HPUX&AIX in the Offline Mode(离线安装EM agent),OMS 端原target 不需要删除在重新填加, 但是重部署后的EM_agent 通过emctl status agent 状态会是blocked,这时重新同步一下即可。

 

[oracle@anbob1:/oracle/em_agent] $AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4  
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 12.1.0.4.0
OMS Version            : 12.1.0.4.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /oracle/em_agent/agent_inst
Agent Log Directory    : /oracle/em_agent/agent_inst/sysman/log
Agent Binaries         : /oracle/em_agent/core/12.1.0.4.0
Agent Process ID       : 28384
Parent Process ID      : 28286
Agent URL              : https://anbob1:3872/emd/main/
Local Agent URL in NAT : https://anbob1:3872/emd/main/
Repository URL         : https://oem:4903/empbs/upload
Started at             : 2016-08-23 09:10:52
Started by user        : oracle
Operating System       : HP-UX version B.11.31 (IA64W)
Last Reload            : (none)
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload           : 1
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 67.35%
Collection Status                            : Collections enabled
Heartbeat Status                             : Agent is blocked
Blocked Reason         : Agent with url https://anbob1:3872/emd/main/ is out-of-sync with repository (2/11) !
Last attempted heartbeat to OMS              : 2016-08-23 09:10:57
Last successful heartbeat to OMS             : (none)
Next scheduled heartbeat to OMS              : 2016-08-23 09:14:01

---------------------------------------------------------------
Agent is Running and Ready

解决方法, 登录 OMS WEB
EM
左上角 targets
all targets
agent_blocked
选择target type是agent的目标, 右键 resynchronisation , 然后continue ,ok 的确认 跳到了agnet 主页 ,等待几分钟后正常.

 

同步过程中开始可能显示

[oracle@anbob1:/home/oracle]>$AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4  
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 12.1.0.4.0
OMS Version            : (unknown)
Protocol Version       : 12.1.0.1.0
Agent Home             : /oracle/em_agent/agent_inst
Agent Log Directory    : /oracle/em_agent/agent_inst/sysman/log
Agent Binaries         : /oracle/em_agent/core/12.1.0.4.0
Agent Process ID       : 15066
Parent Process ID      : 15015
Agent URL              : https://anbob1:3872/emd/main/
Local Agent URL in NAT : https://anbob1:3872/emd/main/
Repository URL         : https://oem:4903/empbs/upload
Started at             : 2016-08-12 10:53:50
Started by user        : oracle
Operating System       : HP-UX version B.11.31 (IA64W)
Last Reload            : (none)
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 62.39%
Collection Status                            : [RESYNC]
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              : 2016-08-12 11:08:59
Last successful heartbeat to OMS             : (none)
Next scheduled heartbeat to OMS              : 2016-08-12 11:11:59

---------------------------------------------------------------
Agent is Running and Ready

同步成功后显示

[oracle@anbob1:/home/oracle]>$AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4  
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 12.1.0.4.0
OMS Version            : 12.1.0.4.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /oracle/em_agent/agent_inst
Agent Log Directory    : /oracle/em_agent/agent_inst/sysman/log
Agent Binaries         : /oracle/em_agent/core/12.1.0.4.0
Agent Process ID       : 15066
Parent Process ID      : 15015
Agent URL              : https://anbob1:3872/emd/main/
Local Agent URL in NAT : https://anbob1:3872/emd/main/
Repository URL         : https://oem:4903/empbs/upload
Started at             : 2016-08-12 10:53:50
Started by user        : oracle
Operating System       : HP-UX version B.11.31 (IA64W)
Last Reload            : (none)
Last successful upload                       : 2016-08-12 11:12:01
Last attempted upload                        : 2016-08-12 11:12:01
Total Megabytes of XML files uploaded so far : 0.01
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 62.39%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2016-08-12 11:13:00
Last successful heartbeat to OMS             : 2016-08-12 11:13:00
Next scheduled heartbeat to OMS              : 2016-08-12 11:14:00

---------------------------------------------------------------
Agent is Running and Ready

原主机上的em agent 卸载,如果EM agent 版本在12.1.0.4 or 12.1.0.5以后, 或是EM 13C 建议使用perl 脚本的卸载方式

$<AGENT_HOME>/perl/bin/perl
<AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <AGENT_HOME>

打赏

对不起,这篇文章暂时关闭评论。