oem cloud 12cr2 部署agent时报错
kofuSep 29 2012 — edited Dec 6 2013在 3)Agent Deployment — 具体的Installation Agent 、Secure Agent 和 执行root.sh
步骤
------------------------------------------------------------------------------------------------------------------
具体错误提示如下:
安装和配置
安全代理 在主机 oemdb1 上执行命令 /m01/oem_base/agent_inst/bin/emctl secure agent 失败 错误消息:不可用
退出代码 :1 修复错误的原因并重试此操作 (或) 在远程主机
/m01/oem_base/agent_inst/bin/emctl secure agent
/m01/oem_base/agent_inst/bin/emctl start agent
/m01/oem_base/agent_inst/bin/emctl config agent addinternaltargets
上手动运行以下命令
------------------------------------------------------------------------------------------------------------------------------
日志位置
oemdb2:/oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/applogs/oemdb1_deploy.log
内容:
2011-11-12_19-28-03:INFO:/bin/sh -c '/bin/mkdir -p /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq' execution was successful on host oemdb1
2011-11-12_19-28-03:INFO:output:
2011-11-12_19-28-03:INFO:error-stream:
2011-11-12_19-28-03:INFO:exit-code: 0
2011-11-12_19-28-03:INFO:copying jar from /oem01/middleware_12c/oms/sysman/prov/agentpush/jlib/agentpush_appprereqs.jar
2011-11-12_19-28-03:INFO:将 OMS 上的文件 /oem01/middleware_12c/oms/sysman/prov/agentpush/jlib/agentpush_appprereqs.jar 复制到主机 oemdb1 上的 /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq Attempt 1
2011-11-12_19-28-03:INFO:copying xml file from /oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/prereqxmls/oemdb1/agent_prereq_context.xml
2011-11-12_19-28-03:INFO:将 OMS 上的文件 /oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/prereqxmls/oemdb1/agent_prereq_context.xml 复制到主机 oemdb1 上的 /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq Attempt 1
2011-11-12_19-28-03:INFO:Unzipping ... /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/unzip
2011-11-12_19-28-03:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/unzip -q -o /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq/agentpush_appprereqs.jar -d /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq'
2011-11-12_19-28-03:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-04:INFO:/bin/sh -c '/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/unzip -q -o /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq/agentpush_appprereqs.jar -d /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq' execution was successful on host oemdb1
2011-11-12_19-28-05:INFO:output:
2011-11-12_19-28-05:INFO:error-stream:
2011-11-12_19-28-05:INFO:exit-code: 0
2011-11-12_19-28-05:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '/bin/mkdir -p /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereqlogs'
2011-11-12_19-28-05:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-06:INFO:/bin/sh -c '/bin/mkdir -p /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereqlogs' execution was successful on host oemdb1
2011-11-12_19-28-06:INFO:output:
2011-11-12_19-28-06:INFO:error-stream:
2011-11-12_19-28-06:INFO:exit-code: 0
2011-11-12_19-28-06:INFO:sessionContext XML /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq/agent_prereq_context.xml
2011-11-12_19-28-06:INFO:Executing command :/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/prereq_stage/core/12.1.0.2.0/oui/bin/runInstaller-prereqchecker
2011-11-12_19-28-06:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/prereq_stage/core/12.1.0.2.0/oui/bin/runInstaller -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion -prereqlogloc /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereqlogs -entryPoint emagent_install PREREQ_CONFIG_LOCATION=/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq/prereqs -J-Doracle.knowledgesource.sessioncontext=/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq/agent_prereq_context.xml'
2011-11-12_19-28-06:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-15:INFO:/bin/sh -c '/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/prereq_stage/core/12.1.0.2.0/oui/bin/runInstaller -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion -prereqlogloc /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereqlogs -entryPoint emagent_install PREREQ_CONFIG_LOCATION=/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq/prereqs -J-Doracle.knowledgesource.sessioncontext=/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereq/agent_prereq_context.xml' execution was successful on host oemdb1
2011-11-12_19-28-15:INFO:error-stream:
2011-11-12_19-28-15:INFO:exit-code: 0
2011-11-12_19-28-15:INFO:Copying logs /oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/prereqlogs
2011-11-12_19-28-15:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '(cd /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereqlogs && /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/prereq_stage/core/12.1.0.2.0/bin/zip -q -r /tmp/remoteArchivesoemdb12011-11-12_07-28-15-PM.zip * )'
2011-11-12_19-28-15:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-16:INFO:/bin/sh -c '(cd /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/appsprereqlogs && /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/prereq_stage/core/12.1.0.2.0/bin/zip -q -r /tmp/remoteArchivesoemdb12011-11-12_07-28-15-PM.zip * )' execution was successful on host oemdb1
2011-11-12_19-28-16:INFO:output:
2011-11-12_19-28-16:INFO:error-stream:
2011-11-12_19-28-16:INFO:exit-code: 0
2011-11-12_19-28-16:INFO:Action description 将文件 /tmp/remoteArchivesoemdb12011-11-12_07-28-15-PM.zip 从主机 oemdb1 复制到 OMS 上的 /tmp/localArchivesoemdb12011-11-12_07-28-15-PM.zip Attempt 1
2011-11-12_19-28-17:INFO:ACTION :在 OMS 主机上执行命令 /oem01/middleware_12c/oms/bin/unzip -q -o -d /oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/prereqlogs/emagent_install_logs/oemdb1 /tmp/localArchivesoemdb12011-11-12_07-28-15-PM.zip
2011-11-12_19-28-17:INFO:Nodelocalhost
2011-11-12_19-28-17:INFO:OUT:
2011-11-12_19-28-17:INFO:ERR:null
2011-11-12_19-28-17:INFO:exit:0
2011-11-12_19-28-17:INFO:STATUS:0
2011-11-12_19-28-17:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '/bin/rm -f /tmp/remoteArchivesoemdb12011-11-12_07-28-15-PM.zip'
2011-11-12_19-28-17:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-18:INFO:/bin/sh -c '/bin/rm -f /tmp/remoteArchivesoemdb12011-11-12_07-28-15-PM.zip' execution was successful on host oemdb1
2011-11-12_19-28-18:INFO:output:
2011-11-12_19-28-18:INFO:error-stream:
2011-11-12_19-28-18:INFO:exit-code: 0
2011-11-12_19-28-18:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '/bin/rm -rf /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/prereq_stage'
2011-11-12_19-28-18:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-19:INFO:/bin/sh -c '/bin/rm -rf /m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/prereq_stage' execution was successful on host oemdb1
2011-11-12_19-28-19:INFO:output:
2011-11-12_19-28-19:INFO:error-stream:
2011-11-12_19-28-19:INFO:exit-code: 0
2011-11-12_19-28-19:INFO:Setting log location oemdb2:/oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/prereqlogs/oemdb1
2011-11-12_19-28-19:INFO:done executing the action: RemoteApplicationPrereq on node: oemdb1
2011-11-12_19-28-19:INFO:action: RemoteApplicationPrereq is SUCCESS
2011-11-12_19-28-19:INFO:updating status SUCCESS for action name RemoteApplicationPrereq with key: RemoteApplicationPrereq
2011-11-12_19-28-19:INFO:resultfile = /oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/prereqlogs/productprereq_logs/oemdb1/results/em_prereqs_results.xml
2011-11-12_19-28-19:INFO:DESCRIPTION:此先决条件将测试 Oracle 软件是否已经过当前操作系统的认证。 RESULT: PASSED RESULT TEXT: Expected result: One of enterprise-6.0,enterprise-5.6,redhat-6.0,redhat-5.6,redhat-5.4,redhat-5.3,redhat-5.2,redhat-5.1,redhat-5,SuSE-11,enterprise-5.4,enterprise-5.3,enterprise-5.2,enterprise-5.1,enterprise-5,UnitedLinux-1.0,asianux-3
Actual Result: redhat-6.0
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:此先决条件将测试系统中是否有最低要求的程序包。 RESULT: PASSED RESULT TEXT: Checking for make-3.81; found make-1:3.81-19.el6-x86_64. Passed
Checking for binutils-2.17.50.0.6; found binutils-2.20.51.0.2-5.28.el6-x86_64. Passed
Checking for gcc-4.1.1; found gcc-4.4.6-3.el6-x86_64. Passed
Checking for libaio-0.3.106; found libaio-0.3.107-10.el6-x86_64. Passed
Checking for glibc-common-2.3.4; found glibc-common-2.12-1.47.el6-x86_64. Passed
Checking for libstdc++-4.1.1; found libstdc++-4.4.6-3.el6-i686. Passed
Checking for sysstat-5.0.5; found sysstat-9.0.4-18.el6-x86_64. Passed
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:此先决条件将测试软件是否与该操作系统兼容 RESULT: PASSED RESULT TEXT: Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:请检查产品清单位置是否至少具有 100 MB 的空闲磁盘空间。 RESULT: PASSED RESULT TEXT: Expected result: 100.0MB
Actual Result: 69824MB
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:Checks whether you have permission to write to the central inventory on the system. RESULT: PASSED RESULT TEXT: Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:检查代理启动是否支持此计算机上安装的时区 RESULT: PASSED RESULT TEXT: Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:This is a prerequisite condition to test whether the agent base directory is owned by the install user, all the parent directories are owned by either the install user or root user and the root directory (that is '/') is owned by root user. RESULT: PASSED RESULT TEXT: Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:Checking for port availability and hostname validity. RESULT: PASSED RESULT TEXT: Expected result: 3872
Actual Result: Port 3872 passed is free and available for agent
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:此先决条件将测试要进行安装的主机名是否正确。 RESULT: PASSED RESULT TEXT: Expected result: Should be a Valid Host Name.
Actual Result: oemdb1
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:这是确保主机上不存在任何代理主目录的先决条件。 RESULT: PASSED RESULT TEXT: Expected result: EM Agent should not exist in host.
Actual Result: There is no EM Agent exists in host.
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:此先决条件将检查代理 Oracle 主目录或安装基目录是否已注册到清单 RESULT: PASSED RESULT TEXT: Expected result: New Agent Oracle Home should not be registered with inventory
Actual Result: Agent Oracle Home with same value does not exist
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:DESCRIPTION:此先决条件检查是否可从目标节点与管理服务器进行 HTTP(S) 通信。 RESULT: PASSED RESULT TEXT: Expected result: The management server must be reachable from the target node via HTTP(S).
Actual Result: HTTPS url https://oemdb2:4904/empbs/genwallet is reachable from the target node
Check complete. The overall result of this check is: Passed
2011-11-12_19-28-19:INFO:isRemotePathsExist:remotePathPropertiesLoc:/oem01/middleware_12c/oms/oui/prov/resources Platform id:226
2011-11-12_19-28-19:INFO:File Name :/usr/bin/sudo
2011-11-12_19-28-19:INFO:Running cmd /bin/sh -c 'if [ -f /usr/bin/sudo ] ; then exit 0; else exit 1; fi' on node oemdb1
2011-11-12_19-28-19:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c 'if [ -f /usr/bin/sudo ] ; then exit 0; else exit 1; fi'
2011-11-12_19-28-19:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-20:INFO:/bin/sh -c 'if [ -f /usr/bin/sudo ] ; then exit 0; else exit 1; fi' execution was successful on host oemdb1
2011-11-12_19-28-20:INFO:output:
2011-11-12_19-28-20:INFO:error-stream:
2011-11-12_19-28-20:INFO:exit-code: 0
2011-11-12_19-28-20:INFO:sudo binary /usr/bin/sudo exists on target nodeoemdb1
2011-11-12_19-28-20:INFO:==SUDO BINARY EXISTS===
2011-11-12_19-28-20:INFO:Using root utl given by user /usr/bin/sudo -u %RUNAS% %COMMAND%
2011-11-12_19-28-20:INFO:Action description 在主机 oemdb1 上执行命令 /usr/bin/sudo -K
2011-11-12_19-28-20:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-22:INFO:/usr/bin/sudo -K execution was successful on host oemdb1
2011-11-12_19-28-22:INFO:output:
2011-11-12_19-28-22:INFO:error-stream:
2011-11-12_19-28-22:INFO:exit-code: 0
2011-11-12_19-28-22:INFO:not adding /bin/sh -c to the root command
2011-11-12_19-28-22:INFO:pdp command without shell out/usr/bin/sudo -u root id
2011-11-12_19-28-22:INFO:Action description 在主机 oemdb1 上执行命令 /usr/bin/sudo -u root id
2011-11-12_19-28-22:INFO:Attempt :1 pty required false with inputs
2011-11-12_19-28-23:INFO:/usr/bin/sudo -u root id execution was successful on host oemdb1
2011-11-12_19-28-23:INFO:output: uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
2011-11-12_19-28-23:INFO:err-stream: [sudo] password for *****:
2011-11-12_19-28-23:INFO:exit-code: 0
2011-11-12_19-28-23:INFO:Action description 在主机 oemdb1 上执行命令 /usr/bin/sudo -K
2011-11-12_19-28-23:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-28-24:INFO:/usr/bin/sudo -K execution was successful on host oemdb1
2011-11-12_19-28-24:INFO:output:
2011-11-12_19-28-24:INFO:error-stream:
2011-11-12_19-28-24:INFO:exit-code: 0
2011-11-12_19-28-24:INFO:output of id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
2011-11-12_19-28-24:INFO:User oracle has sudo privileges on host oemdb1
2011-11-12_19-28-24:INFO:==USER has sudo privileges===
2011-11-12_19-28-24:INFO:PASSED:软件在当前操作系统中是否经过认证? = PASSED
2011-11-12_19-28-24:INFO:PASSED:当前操作系统上是否安装了所需的程序包? = PASSED
2011-11-12_19-28-24:INFO:PASSED:软件是否与当前操作系统兼容? = PASSED
2011-11-12_19-28-24:INFO:PASSED:Checking for sufficient disk space in the Inventory Location = PASSED
2011-11-12_19-28-24:INFO:PASSED:Checking for write permissions on the inventory. = PASSED
2011-11-12_19-28-24:INFO:PASSED:检查时区设置... = PASSED
2011-11-12_19-28-24:INFO:PASSED:Is the ownership of the agent base directory valid? = PASSED
2011-11-12_19-28-24:INFO:PASSED:Checking for port availability and hostname validity... = PASSED
2011-11-12_19-28-24:INFO:PASSED:主机名是否有效? = PASSED
2011-11-12_19-28-24:INFO:PASSED:主机上是否存在任何现有代理主目录? = PASSED
2011-11-12_19-28-24:INFO:PASSED:安装基目录或代理主目录是否已注册到清单中? = PASSED
2011-11-12_19-28-24:INFO:PASSED:主机能否使用 HTTP(S) 与 OMS 进行通信? = PASSED
2011-11-12_19-28-24:INFO:PASSED:远程主机上是否存在权限委派工具? = PASSED
2011-11-12_19-28-24:INFO:PASSED:您是否有权使用权限委派工具以 root 身份运行? = PASSED
2011-11-12_19-28-24:INFO:TIME TAKEN for RemotePrerequisites on host oemdb1 is 0: hrs 0: mins 59 sec
2011-11-12_19-28-24:INFO:PERF:HOSTNAME:oemdb1:RemotePrereqChecker_EXECUTION_TIME:59513
2011-11-12_19-28-24:INFO:HOST:oemdb1
2011-11-12_19-28-24:INFO:Destroying Logger
2011-11-12_19-28-24:INFO:======================================Remote Prereq Checker END ====================================
2011-11-12_19-28-24:INFO:Clearing EMExecutionContext in BaseDeployerOps
2011-11-12_19-28-25:INFO:======================================New Agent Deployer START ====================================
2011-11-12_19-28-25:INFO:Creating instance of ClusterBase Ops for hostnameoemdb1
2011-11-12_19-28-25:INFO:Setting locale succeeded in BaseDeployerOps
2011-11-12_19-28-25:INFO:[action name=PreInstallScript, action Description=安装前脚本, order=100, skip=false, executeAlways=false, status=null,
2011-11-12_19-28-25:INFO:skipping preinstall script since user has not specified one
2011-11-12_19-28-25:INFO: Skipping action PreInstallScript based on inputs
2011-11-12_19-28-25:INFO:[action name=Install, action Description=安装和配置, order=200, skip=false, executeAlways=false, status=null,
2011-11-12_19-28-25:INFO:[action name=SecureAgent, action Description=安全代理, order=300, skip=false, executeAlways=false, status=null,
2011-11-12_19-28-25:INFO:[action name=RunRootSH, action Description=Root.sh, order=400, skip=false, executeAlways=false, status=null,
2011-11-12_19-28-25:INFO:[action name=PostInstallScript, action Description=安装后脚本, order=500, skip=false, executeAlways=false, status=null,
2011-11-12_19-28-25:INFO:skipping postinstall script since user has not specified one
2011-11-12_19-28-25:INFO: Skipping action PostInstallScript based on inputs
2011-11-12_19-28-25:INFO:[action name=CollectLog, action Description=收集日志, order=600, skip=false, executeAlways=true, status=null,
2011-11-12_19-28-25:INFO:[action name=Cleanup, action Description=清除, order=700, skip=false, executeAlways=false, status=null,
2011-11-12_19-28-25:INFO: ACTIONS : Install
2011-11-12_19-28-25:INFO: ACTIONS : SecureAgent
2011-11-12_19-28-25:INFO: ACTIONS : RunRootSH
2011-11-12_19-28-25:INFO: ACTIONS : CollectLog
2011-11-12_19-28-25:INFO: ACTIONS : Cleanup
2011-11-12_19-28-25:INFO:============Creating Deployment Vo for key : Installation and setting status as NOT_EXECUTED
2011-11-12_19-28-25:INFO:=====Creating Action Vo for actionInstall
2011-11-12_19-28-25:INFO:=====Creating Action Vo for actionSecureAgent
2011-11-12_19-28-25:INFO:=====Creating Action Vo for actionRunRootSH
2011-11-12_19-28-25:INFO:=====Creating Action Vo for actionCollectLog
2011-11-12_19-28-25:INFO:=====Creating Action Vo for actionCleanup
2011-11-12_19-28-25:INFO:deploymentVo has now status: NOT_EXECUTED
2011-11-12_19-28-25:INFO:Retry Count 3 sleep interval 250
2011-11-12_19-28-26:INFO:sudo exists value true
2011-11-12_19-28-26:INFO:sudo privilege value true
2011-11-12_19-28-26:INFO:==SUDO EXISTS true SUDO PRIV true
2011-11-12_19-28-26:INFO:====CALLING ACTIONdoInstall
2011-11-12_19-28-26:INFO:updating status IN_PROGRESS for action name Install with key: Install
2011-11-12_19-28-26:INFO:Port provided
2011-11-12_19-28-26:INFO:Install Args -ignorePrereqs
2011-11-12_19-28-26:INFO:Install Args ORACLE_HOSTNAME=oemdb1
2011-11-12_19-28-26:INFO:Install Args AGENT_BASE_DIR=/m01/oem_base
2011-11-12_19-28-26:INFO:Install Args OMS_HOST=oemdb2
2011-11-12_19-28-26:INFO:Install Args EM_UPLOAD_PORT=4904
2011-11-12_19-28-26:INFO:Install Args AGENT_INSTANCE_HOME=/m01/oem_base/agent_inst
2011-11-12_19-28-26:INFO:Install Args b_doDiscovery=false
2011-11-12_19-28-26:INFO:Install Args b_startAgent=false
2011-11-12_19-28-26:INFO:Install Args b_forceInstCheck=true
2011-11-12_19-28-26:INFO:Install Args AGENT_PORT=3872
2011-11-12_19-28-26:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=oemdb1 AGENT_BASE_DIR=/m01/oem_base OMS_HOST=oemdb2 EM_UPLOAD_PORT=4904 AGENT_INSTANCE_HOME=/m01/oem_base/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872'
2011-11-12_19-28-26:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-32-26:INFO:/bin/sh -c '/m01/oem_base/ADATMP_2011-11-12_19-06-16-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=oemdb1 AGENT_BASE_DIR=/m01/oem_base OMS_HOST=oemdb2 EM_UPLOAD_PORT=4904 AGENT_INSTANCE_HOME=/m01/oem_base/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872' execution was successful on host oemdb1
2011-11-12_19-32-26:INFO:error-stream:
2011-11-12_19-32-26:INFO:exit-code: 0
2011-11-12_19-32-26:INFO:==Found Pattern Agent Configuration completed successfully
2011-11-12_19-32-26:INFO:Found Pattern Agent Configuration completed successfully
2011-11-12_19-32-26:INFO:Install Success Message found in install log
2011-11-12_19-32-26:INFO:done executing the action: Install on node: oemdb1
2011-11-12_19-32-26:INFO:action: Install is SUCCESS
2011-11-12_19-32-26:INFO:updating status SUCCESS for action name Install with key: Install
2011-11-12_19-32-26:INFO:sudo exists value true
2011-11-12_19-32-26:INFO:sudo privilege value true
2011-11-12_19-32-26:INFO:==SUDO EXISTS true SUDO PRIV true
2011-11-12_19-32-26:INFO:====CALLING ACTIONdoSecureAgent
2011-11-12_19-32-26:INFO:updating status IN_PROGRESS for action name SecureAgent with key: SecureAgent
2011-11-12_19-32-27:INFO:Securing agent since user has not passed b_secureAgent=false in additional parameters
2011-11-12_19-32-27:INFO:Action description 在主机 oemdb1 上执行命令 /m01/oem_base/agent_inst/bin/emctl secure agent
2011-11-12_19-32-27:INFO:Attempt :1 pty required false with inputs
2011-11-12_19-32-31:INFO:/m01/oem_base/agent_inst/bin/emctl secure agent execution failed on host oemdb1
2011-11-12_19-32-31:INFO: ACTION 在主机 oemdb1 上执行命令 /m01/oem_base/agent_inst/bin/emctl secure agent
2011-11-12_19-32-31:INFO: OUT Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.Agent is already stopped... Done.
Securing agent... Started.Enter Agent Registration Password : Enter Agent Registration Password : Securing agent... Failed.
2011-11-12_19-32-31:INFO: ERR null
2011-11-12_19-32-31:INFO: EXIT CODE1
2011-11-12_19-32-31:INFO:InvocationTargetException Exception
2011-11-12_19-32-31:INFO:Printing Exception :java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.executeActions(BaseDeployerOps.java:1845)
at oracle.sysman.core.agentpush.ui.deployer.NewAgentDeployer.deploy(NewAgentDeployer.java:59)
at oracle.sysman.core.agentpush.ui.deployfwk.DeploymentWorker.run(DeploymentWorker.java:26)
at oracle.sysman.util.threadPoolManager.WorkerThread.run(Worker.java:264)
Caused by: CommandException: err: null out: Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.Agent is already stopped... Done.
Securing agent... Started.Enter Agent Registration Password : Enter Agent Registration Password : Securing agent... Failed.
exitcode: 1
stacktrace:
null
at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:1061)
at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:905)
at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.doSecureAgent(BaseDeployerOps.java:624)
... 8 more
2011-11-12_19-32-31:INFO:=========Command Exception :错误消息:不可用<br><br> 退出代码 :1
2011-11-12_19-32-31:INFO:Updating Action SecureAgentwith Status FAILED and error Message :错误消息:不可用<br><br> 退出代码 :1 and problem 在主机 oemdb1 上执行命令 /m01/oem_base/agent_inst/bin/emctl secure agent 失败 and recommendation 修复错误的原因并重试此操作 (或) 在远程主机 <ul> <li>/m01/oem_base/agent_inst/bin/emctl secure agent</li><li>/m01/oem_base/agent_inst/bin/emctl start agent</li><li>/m01/oem_base/agent_inst/bin/emctl config agent addinternaltargets</li></ul> 上手动运行以下命令
2011-11-12_19-32-31:INFO:=================action status is not empty FAILED
2011-11-12_19-32-31:INFO:Breaking since the action has failed
2011-11-12_19-32-31:INFO:Skipping action RunRootSH since some previous step has failed
2011-11-12_19-32-31:INFO:Not Skipping action CollectLog since some previous step has failed
2011-11-12_19-32-31:INFO:sudo exists value true
2011-11-12_19-32-31:INFO:sudo privilege value true
2011-11-12_19-32-31:INFO:==SUDO EXISTS true SUDO PRIV true
2011-11-12_19-32-31:INFO:====CALLING ACTIONdoCollectLog
2011-11-12_19-32-31:INFO:updating status IN_PROGRESS for action name CollectLog with key: CollectLog
2011-11-12_19-32-31:INFO:Action 安全代理 failed so copy cfgToolLogs directory
2011-11-12_19-32-31:INFO:Perform Copy CfgToolLogs :true
2011-11-12_19-32-31:INFO:Dir Name/m01/oem_base/core/12.1.0.2.0/cfgtoollogs
2011-11-12_19-32-31:INFO:Running cmd /bin/sh -c 'if [ -d /m01/oem_base/core/12.1.0.2.0/cfgtoollogs ] ; then exit 0; else exit 1; fi' on node oemdb1
2011-11-12_19-32-31:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c 'if [ -d /m01/oem_base/core/12.1.0.2.0/cfgtoollogs ] ; then exit 0; else exit 1; fi'
2011-11-12_19-32-31:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-32-32:INFO:/bin/sh -c 'if [ -d /m01/oem_base/core/12.1.0.2.0/cfgtoollogs ] ; then exit 0; else exit 1; fi' execution was successful on host oemdb1
2011-11-12_19-32-32:INFO:output:
2011-11-12_19-32-32:INFO:error-stream:
2011-11-12_19-32-32:INFO:exit-code: 0
2011-11-12_19-32-32:INFO:Dir /m01/oem_base/core/12.1.0.2.0/cfgtoollogs exists on remote node and hence copying it
2011-11-12_19-32-32:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '(cd /m01/oem_base/core/12.1.0.2.0/cfgtoollogs && /m01/oem_base/core/12.1.0.2.0/bin/zip -q -r /tmp/remoteArchivesoemdb12011-11-12_07-32-32-PM.zip * )'
2011-11-12_19-32-32:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-32-33:INFO:/bin/sh -c '(cd /m01/oem_base/core/12.1.0.2.0/cfgtoollogs && /m01/oem_base/core/12.1.0.2.0/bin/zip -q -r /tmp/remoteArchivesoemdb12011-11-12_07-32-32-PM.zip * )' execution was successful on host oemdb1
2011-11-12_19-32-33:INFO:output:
2011-11-12_19-32-33:INFO:error-stream:
2011-11-12_19-32-33:INFO:exit-code: 0
2011-11-12_19-32-33:INFO:Action description 将文件 /tmp/remoteArchivesoemdb12011-11-12_07-32-32-PM.zip 从主机 oemdb1 复制到 OMS 上的 /tmp/localArchivesoemdb12011-11-12_07-32-32-PM.zip Attempt 1
2011-11-12_19-32-34:INFO:ACTION :在 OMS 主机上执行命令 /oem01/middleware_12c/oms/bin/unzip -q -o -d /oem01/middleware_12c/gc_inst/em/EMGC_OMS1/sysman/agentpush//2011-11-12_19-06-16-PM/cfgtoollogs/oemdb1 /tmp/localArchivesoemdb12011-11-12_07-32-32-PM.zip
2011-11-12_19-32-34:INFO:Nodelocalhost
2011-11-12_19-32-34:INFO:OUT:
2011-11-12_19-32-34:INFO:ERR:null
2011-11-12_19-32-34:INFO:exit:0
2011-11-12_19-32-34:INFO:STATUS:0
2011-11-12_19-32-34:INFO:Action description 在主机 oemdb1 上执行命令 /bin/sh -c '/bin/rm -f /tmp/remoteArchivesoemdb12011-11-12_07-32-32-PM.zip'
2011-11-12_19-32-34:INFO:Attempt :1 pty required false with no inputs
2011-11-12_19-32-35:INFO:/bin/sh -c '/bin/rm -f /tmp/remoteArchivesoemdb12011-11-12_07-32-32-PM.zip' execution was successful on host oemdb1
2011-11-12_19-32-35:INFO:output:
2011-11-12_19-32-35:INFO:error-stream:
2011-11-12_19-32-35:INFO:exit-code: 0
2011-11-12_19-32-35:INFO:done executing the action: CollectLog on node: oemdb1
2011-11-12_19-32-35:INFO:action: CollectLog is SUCCESS
2011-11-12_19-32-35:INFO:updating status SUCCESS for action name CollectLog with key: CollectLog
2011-11-12_19-32-35:INFO:Skipping action Cleanup since some previous step has failed
2011-11-12_19-32-35:INFO:The following action failedSecureAgent
2011-11-12_19-32-35:INFO:TIME TAKEN by NewAgentDeployer on host oemdb1 is 0: hrs 4: mins 9 sec
2011-11-12_19-32-35:INFO:PERF:HOSTNAME:oemdb1:NewAgentDeployer_EXECUTION_TIME:249836
2011-11-12_19-32-35:INFO:HOST:oemdb1
2011-11-12_19-32-35:INFO:Destroying Logger
2011-11-12_19-32-35:INFO:======================================New Agent Deployer END ====================================
2011-11-12_19-32-35:INFO:Clearing EMExecutionContext in BaseDeployerOps