OEM 12cR3使用agentDeploy方式安装agent

--在OMS服务器使用SYSMAN登录emcli,同步emcli

[oracle@omsdb agent]$ $OMS_HOME/bin/emcli login -username=sysman -password=oracle
Login successful
[oracle@omsdb agent]$ $OMS_HOME/bin/emcli sync
Synchronized successfully


--列出agent版本

[oracle@omsdb agent]$ $OMS_HOME/bin/emcli get_supported_platforms
-----------------------------------------------
Version = 12.1.0.3.0
 Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.


--获取agent,并且传送到agent服务器

[oracle@omsdb agent]$ $OMS_HOME/bin/emcli get_agentimage -destination=/home/oracle/agent -platform="Linux x86-64" -version=12.1.0.3.0
 === Partition Detail ===
Space free : 77 GB
Space required : 1 GB
Check the logs at /u01/app/oracle/product/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2014-02-19_19-54-56-PM.log
Downloading /home/oracle/agent/12.1.0.3.0_AgentCore_226.zip
File saved as /home/oracle/agent/12.1.0.3.0_AgentCore_226.zip
Downloading /home/oracle/agent/12.1.0.3.0_PluginsOneoffs_226.zip
File saved as /home/oracle/agent/12.1.0.3.0_PluginsOneoffs_226.zip
Downloading /home/oracle/agent/unzip
File saved as /home/oracle/agent/unzip
Agent Image Download completed successfully.

[oracle@omsdb agent]$ scp 12.1.0.3.0_AgentCore_226.zip oracle@db10g:/oma
The authenticity of host 'db10g (192.168.1.15)' can't be established.
RSA key fingerprint is bb:e6:35:a9:f2:16:56:4e:d6:af:3b:92:10:c6:a7:1c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'db10g,192.168.1.15' (RSA) to the list of known hosts.
oracle@db10g's password: 
12.1.0.3.0_AgentCore_226.zip                                                                                                                                                                      100%  235MB  39.2MB/s   00:06 


--agent端解压

[oracle@db10g oma]$ unzip 12.1.0.3.0_AgentCore_226.zip 
Archive:  12.1.0.3.0_AgentCore_226.zip
  inflating: unzip                   
  inflating: agentDeploy.sh          
  inflating: agentimage.properties   
  inflating: agent.rsp               
 extracting: agentcoreimage.zip      
 extracting: 12.1.0.3.0_PluginsOneoffs_226.zip  


--安装agentd

[oracle@db10g oma]$ ./agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/oma OMS_HOST=omsdb.localdomain EM_UPLOAD_PORT=4900 AGENT_REGISTRATION_PASSWORD=oracle ORACLE_HOSTNAME=db10g.localdomain
 
Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /u01/app/oracle/oma/core/12.1.0.3.0/jdk/bin/java -classpath /u01/app/oracle/oma/core/12.1.0.3.0/jlib/agentInstaller.jar:/u01/app/oracle/oma/core/12.1.0.3.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/oma/core/12.1.0.3.0 /oma /u01/app/oracle/oma -prereq


Validating oms host & port with url: http://omsdb.localdomain:4900/empbs/genwallet
Validating oms host & port with url: https://omsdb.localdomain:4900/empbs/genwallet
Return status:3-oms https port is passed
Unzipping the agentcoreimage.zip to /u01/app/oracle/oma ....
12.1.0.3.0_PluginsOneoffs_226.zip
Executing command : /oma/unzip -o /oma/12.1.0.3.0_PluginsOneoffs_226.zip -d /u01/app/oracle/oma
Executing command : /u01/app/oracle/oma/core/12.1.0.3.0/jdk/bin/java -classpath /u01/app/oracle/oma/core/12.1.0.3.0/oui/jlib/OraInstaller.jar:/u01/app/oracle/oma/core/12.1.0.3.0/oui/jlib/xmlparserv2.jar:/u01/app/oracle/oma/core/12.1.0.3.0/oui/jlib/srvm.jar:/u01/app/oracle/oma/core/12.1.0.3.0/oui/jlib/emCfg.jar:/u01/app/oracle/oma/core/12.1.0.3.0/jlib/agentInstaller.jar:/u01/app/oracle/oma/core/12.1.0.3.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/oma/core/12.1.0.3.0 /oma /u01/app/oracle/oma /u01/app/oracle/oma/agent_inst AGENT_BASE_DIR=/u01/app/oracle/oma


Executing agent install prereqs...
Executing command: /u01/app/oracle/oma/core/12.1.0.3.0/oui/bin/runInstaller -debug   -ignoreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prereqlogloc /u01/app/oracle/oma/core/12.1.0.3.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/u01/app/oracle/oma/core/12.1.0.3.0/prereqs  -J-DORACLE_HOSTNAME=db10g.localdomain -J-DAGENT_BASE_DIR=/u01/app/oracle/oma
Prereq Logs Location:/u01/app/oracle/oma/core/12.1.0.3.0/cfgtoollogs/agentDeploy/prereq<timestamp>.log
Agent install prereqs completed successfully


Cloning the agent home...
Executing command: /u01/app/oracle/oma/core/12.1.0.3.0/oui/bin/runInstaller -debug   -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/oracle/oma/core/12.1.0.3.0   AGENT_BASE_DIR=/u01/app/oracle/oma AGENT_BASE_DIR=/u01/app/oracle/oma OMS_HOST=omsdb.localdomain EM_UPLOAD_PORT=4900 AGENT_REGISTRATION_PASSWORD=oracle10gOCP ORACLE_HOSTNAME=db10g.localdomain -noconfig  ORACLE_HOME_NAME=agent12c1 -force b_noUpgrade=true AGENT_PORT=-1
Clone Action Logs Location:/u01/app/oracle/oraInventory/logs/cloneActions<timestamp>.log
Cloning of agent home completed successfully


Attaching sbin home...
Executing command: /u01/app/oracle/oma/core/12.1.0.3.0/oui/bin/runInstaller -debug   -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/u01/app/oracle/oma/sbin ORACLE_HOME_NAME=sbin12c1 -force
Attach Home Logs Location:/u01/app/oracle/oma/core/12.1.0.3.0/cfgtoollogs/agentDeploy/AttachHome<timestamp>.log
Attach home for sbin home completed successfully.


Updating home dependencies...
Executing command: /u01/app/oracle/oma/core/12.1.0.3.0/oui/bin/runInstaller -debug   -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={/u01/app/oracle/oma/sbin:/u01/app/oracle/oma/core/12.1.0.3.0} -invPtrLoc /u01/app/oracle/oma/core/12.1.0.3.0/oraInst.loc -force
Update Home Dependencies Location:/u01/app/oracle/oma/core/12.1.0.3.0/cfgtoollogs/agentDeploy/UpdateHomeDeps<timestamp>.log
Update home dependency completed successfully.


Performing the agent configuration...
Executing command: /u01/app/oracle/oma/core/12.1.0.3.0/oui/bin/runConfig.sh ORACLE_HOME=/u01/app/oracle/oma/core/12.1.0.3.0 RESPONSE_FILE=/u01/app/oracle/oma/core/12.1.0.3.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
Configuration Log Location:/u01/app/oracle/oma/core/12.1.0.3.0/cfgtoollogs/cfgfw/CfmLogger<timestamp>.log
Agent Configuration completed successfully


The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
 /u01/app/oracle/oma/core/12.1.0.3.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
Agent Deployment Successful.
Agent deployment log location:
/u01/app/oracle/oma/core/12.1.0.3.0/cfgtoollogs/agentDeploy/agentDeploy_2014-02-19_20-15-19-PM.log
Agent deployment completed successfully.



--执行root.sh

[root@db10g ~]# /u01/app/oracle/oma/core/12.1.0.3.0/root.sh
Finished product-specific root actions.
/etc exist

Creating /etc/oragchomelist file...
Finished product-specific root actions.


--查看agent状态

[oracle@db10g bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.3.0
OMS Version       : 12.1.0.3.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u01/app/oracle/oma/agent_inst
Agent Binaries    : /u01/app/oracle/oma/core/12.1.0.3.0
Agent Process ID  : 28090
Parent Process ID : 28042
Agent URL         : https://db10g.localdomain:3872/emd/main/
Repository URL    : https://omsdb.localdomain:4900/empbs/upload
Started at        : 2014-02-19 20:18:42
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2014-02-19 20:18:58
Last attempted upload                        : 2014-02-19 20:18:58
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    : 70.06%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2014-02-19 20:20:49
Last successful heartbeat to OMS             : 2014-02-19 20:20:49
Next scheduled heartbeat to OMS              : 2014-02-19 20:21:49


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



--也可以使用响应文件的方式agent.rsp
OMS_HOST="linux-oem-prod.dev.domain"
EM_UPLOAD_PORT="4902"
AGENT_REGISTRATION_PASSWORD="oracle"
AGENT_INSTANCE_HOME="/u01/app/oracle/agent12g/agent_inst"
AGENT_PORT="3872″
ORACLE_HOSTNAME="linux-orasql-001-dev.dev.domain"

./agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/agent12g RESPONSE_FILE=/u01/app/oracle/agent_software/agent.rsp 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值