且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

EM 12c推送Agent出错 - OMS_HOST and EM_UPLOAD_PORT is not available

更新时间:2022-09-06 22:44:42

EM 12c主机  szhs171-or.szhw.com

要手工add target加入的主机:  szhs135-or, szhs136-or, szhs167-or。 
ssa_admin 用户登陆em 12c console后, 选择"设置" -> "添加目标" -> "手动添加目标",选择 "添加主机目标",点击添加主机按钮。
按照要求填写一些目录及登陆权限信息后,点击部署。部署到最后一项时报错,提示如下:  
log文件位置: 
szhs171-orszhw.com:/data01/app/oracle/product/gc_inst/em/EMGC_OMS1/sysman/agentpush/2015-12-30_14-09-39-PM/
applogs/szhs136-orszhw.com_deploy.log
报错信息:  
Execution of command /data01/em12c/agent/ADATMP_2015-12-30_14-09-39-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=
szhs136-or.szhw.comAGENT_BASE_DIR=/data01/em12c/agent OMS_HOST=szhs171-or.szhw.comEM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME
=/data01/em12c/agent/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872 on host szhs136-or.szhw.comFailed
Cause -- 
Error Message: The Oracle Management Server (OMS) host and port specified via OMS_HOST and EM_UPLOAD_PORT is not available. Pass in a valid 
hostname and port number for the OMS to successfully deploy the agent.
Exit Code :1
-----------------
Execution of command (cd /data01/em12c/agent/core/12.1.0.4.0/cfgtoollogs && /data01/em12c/agent/core/12.1.0.4.0/bin/zip -q -r /tmp
/remoteArchivesszhs136-orszhw.com2015-12-30_02-28-30-PM.zip * ) on host szhs136-or.szhw.comFailed
Cause -- 
Error Message:/bin/sh: /data01/em12c/agent/core/12.1.0.4.0/bin/zip: No such file or directory
Exit Code :127
总体感觉就是 OMS主机对应upload端口 4903 不能访问,可能是防火墙问题,更换了一个与EM等主机在同一个网段的机器登陆console进行操作,
果不其然,是防火墙问题,部署配置完成。 
本文转自ITPUB博客tolywang的博客,原文链接:EM 12c推送Agent出错 - OMS_HOST and EM_UPLOAD_PORT is not available,如需转载请自行联系原博主。