Wednesday, 24 July 2013

How to Install 12c agent using Pull method

Installation  of  Oracle 12c agent (12..1.0.2) using Pull method

AgentPull Method provides a mechanism to install the Agent without requiring emcli or SSH setup between OMS host and target host.

1.    Agent port  and OMS Port should be open (telnet)

2.  mkdir -p /home/oracle/oracle_software/12C/agent

3.       curl "https://oms.abcxyz.com:XXXX/em/install/getAgentImage" --insecure -o AgentPull.sh

  O/P:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  Dload  Upload  Total   Spent    Left  Speed
100 10447  100 10447    0     0   165k      0 --:--:-- --:--:-- --:--:--  9.9


4.  chmod 775 /home/oracle/oracle_software/12C/agent/AgentPull.sh

O/P:

[oracle@abcxyz  agent]$ /home/oracle/oracle_software/12C/agent/AgentPull.sh –showPlatforms
Platforms       Version
Linux x86-64    12.1.0.2.0

5.       vi  new installagent12c.rsp   file.
[oracle@abcxyz  agent]$ vi installagent12c.rsp

# Add below lines in installagent12c.rsp

LOGIN_USER=sysman
LOGIN_PASSWORD=XXXXXXX
PLATFORM="Linux x86-64"
VERSION=12.1.0.2.0
AGENT_REGISTRATION_PASSWORD=XXXXXXX

6.       a.  Before running below commands please ensure that public  addresses entries in /etc/hosts in order as

IPaddress    Hostname   Alias


Then execute the below command,

/home/oracle/oracle_software/12C/agent/AgentPull.sh  RSPFILE_LOC=/home/oracle/oracle_software/12C/agent/installagent12c.rsp   AGENT_BASE_DIR=/home/app/oracle/product/12.1.0/agent1

O/P:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  229M  100  229M    0     0  9581k      0  0:00:24  0:00:24 --:--:-- 14.0M
test of /home/app/oracle/product/12.1.0/agent1///agent.zip OK
Unzipping agent image...
Executing agentDeploy.sh...

Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/jdk/bin/java -classpath /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/jlib/agentInstaller.jar:/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0 /home/app/oracle/product/12.1.0/agent1/ /home/app/oracle/product/12.1.0/agent1/ -prereq

Validating oms host & port with url: http://hostname:49XX/empbs/genwallet
Validating oms host & port with url: https://hostnme:49XX/empbs/genwallet
Return status:3
Unzipping the agentcoreimage.zip to /home/app/oracle/product/12.1.0/agent1/ ....
12.1.0.2.0_PluginsOneoffs_226.zip
Executing command : /home/app/oracle/product/12.1.0/agent1//unzip -o /home/app/oracle/product/12.1.0/agent1//12.1.0.2.0_PluginsOneoffs_226.zip -d /home/app/oracle/product/12.1.0/agent1/
Executing command : /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/jdk/bin/java -classpath /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/jlib/OraInstaller.jar:/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/jlib/xmlparserv2.jar:/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/jlib/srvm.jar:/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/jlib/emCfg.jar:/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/jlib/agentInstaller.jar:/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0 /home/app/oracle/product/12.1.0/agent1/ /home/app/oracle/product/12.1.0/agent1/ /home/app/oracle/product/12.1.0/agent1//agent_inst AGENT_BASE_DIR=/home/app/oracle/product/12.1.0/agent1/ AGENT_BASE_DIR=/home/app/oracle/product/12.1.0/agent1/ OMS_HOST=hostnme EM_UPLOAD_PORT=49XX AGENT_REGISTRATION_PASSWORD=XXXXXXX


Executing agent install prereqs...
Executing command: /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prereqlogloc /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/prereqs  -J-DAGENT_BASE_DIR=/home/app/oracle/product/12.1.0/agent1/
Prereq Logs Location:/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/cfgtoollogs/agentDeploy/prereq<timestamp>.log

Agent install prereqs completed successfully

Cloning the agent home...
Executing command: /home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0   AGENT_BASE_DIR=/home/app/oracle/product/12.1.0/agent1/ AGENT_BASE_DIR=/home/app/oracle/product/12.1.0/agent1/ OMS_HOST=hostnme EM_UPLOAD_PORT=49XX AGENT_REGISTRATION_PASSWORD=XXXXXXX -noconfig  ORACLE_HOME_NAME=agent12c1 -force b_noUpgrade=true AGENT_PORT=-1
Clone Action Logs Location:/home/app/oracle/oraInventory/logs/cloneActions<timestamp>.log

Cloning of agent home completed successfully

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

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

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

Agent Configuration completed successfully


7.       The following configuration scripts need to be executed as the "root" user.

The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
 /home/app/oracle/product/12.1.0/agent1/core/12.1.0.2.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:
/home/app/oracle/product/12.1.0/agent1//core/12.1.0.2.0/cfgtoollogs/agentDeploy/agentDeploy_2013-01-14_13-09-39-PM.log
Agent deployment completed successfully.
Agent Pull task completed successfully.
You have new mail in /var/spool/mail/oracle



8.       Check the Agent status
/home/app/oracle/product/12.1.0/agent1//agent_inst/bin/emctl status agent

9.       Secure your Agent.
/home/app/oracle/product/12.1.0/agent1//agent_inst/bin/emctl secure agent -emdWalletSrcUrl

https://abcxyz:49XX/em

10.   Start  Agent

/home/app/oracle/product/12.1.0/agent1//agent_inst/bin/emctl stop agent


11.   Start the agent

/home/app/oracle/product/12.1.0/agent1//agent_inst/bin/emctl start agent

/home/app/oracle/product/12.1.0/agent1//agent_inst/bin/emctl status agent

Please make sure  it is pointing to new URL abcxyz.com


Hope this helps you to install agent using pull method.