以从下面两组日志着手,通过下面两组日志,基本可以排查agent部署过程的所有问题。
服务端日志:/u01/app/oracle/product/oem13.2/gc_inst/em/EMGC_OMS1/sysman/agentpush/2019-10-16_14-39-16-PM/applogs/192.168.10.153_deploy.log
目标端日志:/u01/oem/agent/ADATMP_2019-10-16_14-39-16-PM/agentDeploy_2019-10-16_14_56_26.log
在服务端的日志,大多是一些执行脚本的记录,没有具体的报错信息。
在目标端的日志,会指出具体是那个环节报错。下图为目标端日志,清楚的指出plugins.txt文件找不到。
Entered Post Install…Relaxing execute permission for other users on /u01/oem/agent/agent_13.3.0.0.0/install for bug#20005612agenthome is /u01/oem/agent/agent_13.3.0.0.0 /u01/oem/agent/ADATMP_2019-10-16_14-39-16-PM/plugins.txt not found. The Management Agent installation failed. The plug-in oracle.sysman.oh may not be present in the Management Agent software. Ensure that the Management Agent software has the oracle.sysman.oh monitoring and discovery plug-in.
查找MOS文章EM13c: Agent Push Failed During the Plug-in Deployment With Error “plugins.txt not found” (Doc ID 2563545.1)给出相应解决方法为,调整版本号13.2.0.0.0>>13.3.0.0.0,并把指定文件复制到目标端相应目录重新部署。
Create a directory on the OMS host with name "plugins"Copy these files in the plugins directory.
MW_HOME/sysman/install/plugins/oracle.sysman.oh/13.2.0.0.0/oracle.sysman.oh.agent.plugin-13.2.0.0.0.farb
MW_HOME/sysman/install/plugins/oracle.sysman.oh/13.2.0.0.0/oracle.sysman.oh.discovery.plugin-13.2.0.0.0.farb
Create a file “plugins.txt” with following conent
.oracle.sysman.oh|13.2.0.0.0| |discoveryPlugin
oracle.sysman.oh|13.2.0.0.0| |agentPlugin
Copy plugins.txt and plugins directory to destination host and place at <AGENT_BASE_DIR>/ADATMP_/Clicked on Retry Using Same Inputs on UI.
Agent installation should complete.Execute <AGENT_BASE_DIR>/agent_13.2.0.0.0/root.sh as a root user.
传输文件至目标端,重新部署成功。[oracle@oracle01 agent_13.3.0.0.0]$ scp -r plugins plugins.txt weblogic@192.168.10.153:/u01/oem/agent/ADATMP_2019-10-16_14-39-16-PM^C
[oracle@oracle01 agent_13.3.0.0.0]$ pwd
/u01/app/oracle/product/oem13.2/agent/agent_13.3.0.0.0