EM CC 13C:The agent is blocked by the OMS.

By | 2017年9月13日

今天,Oracle EM CC 13C的Agent遇到了一个问题,大概的错误如题所示。

具体表现如下:
Agent端:
一、

Error Message:

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.

二、

Error Message:

EMD upload error:full upload has failed: The agent is blocked by the OMS. 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. (AGENT_BLOCKED)

——————————————
错误原因:
Oracle官方的解释是因为你的数据库中已经有了一条打算添加的Agent的记录(可能是重名的记录,也可能是旧的记录),所以,这个时候冲突了。

As this issue is happening right after the installation of agent, this can happen if there was a duplicate/old entry in the repository tables with the name of same agent and targets on this host.

Agent的信息:

查一下EM的DB:

解决方法:
Agent端:
停Agent服务:

确保没有【emagent】的进程在运行:

然后登陆EM后台的OMR数据库,用【SYSMAN】执行清理:

Agent端:
然后文件系统中,删除以下路径的数据:

Please remove the files from the following locations:

AGENT_HOME/sysman/emd/state/
AGENT_HOME/sysman/emd/recv/
AGENT_HOME/sysman/emd/upload/
AGENT_HOME/sysman/log/

Agent端:
重启Agent服务

端口:

Secure Agent:

这个密码要记住。

Agent端
最后,再看看Agent的状态,就应该正常了:

访问URL:https://10.168.0.36:3872/emd/main

其实,直到这个时候,OMR中,还是没有添加这个Agent的记录,如下:

你访问EM CC的网页,可能会有延迟,而看到错误的画面:

过一段时间,等WEB刷新缓存后,你就可以看到其实上面截图中报错的记录,已经不存在了:

——————
然后,重新添加资源:
通过自动搜索添加:

点击【升级】


这样,添加监控目标就成功了。

————————
这时候去OMR数据库中查看资源也能查看到了:

EM CC 13C页面要看到资源要等一段时间。

或者,你等不及,可以重启OMS服务:

——————
至此,问题解决。

——————
参考文档:
MOS:
1.
Right After Install, the Grid Control Agent Generates ERROR-Agent is blocked. Blocked reason is: Agent is out-of-sync with repository (文档 ID 1307816.1)

2.
Agent to OMS Communication Fails if the Agent is ‘Blocked’ in the 10.2.0.5 Grid Console [ID 799618.1]

3.
Agent to OMS Communication Fails if the Agent is Blocked and Re-synchronization is not Successful [ID 1054605.1]

——————————
此外,关于【OMS】block Agent,其实在EM中也是可以设置开启或者取消的:

如上,如果你启用了【阻止】。
那么你在Agent端查看代理程序状态的时候,在【Heartbeat Status】那一行,一定会看到文首所示的错误【Agent is blocked】

正确的样子是这样的:

————————
Done。

打赏

说点什么

您将是第一位评论人!

提醒
avatar
wpDiscuz