RE: 12c Agent deploy

From: John Hallas <John.Hallas_at_morrisonsplc.co.uk>
Date: Mon, 19 Aug 2013 09:34:19 +0100
Message-ID: <EC65ECF8123FEE4D8FC5B212637C3040016625C6A29D_at_EXCH1.morrisonsplc.co.uk>



We add the agent as we build the server. We don't use SSH for our silent installs but we deploy using a silent install

Create the agent image
This step only needs to completed once if you download new agent software. We deploy the base image of the agent and any updates/plugins will be applied to this image automatically by OEM.

Log on to the OMS server and connect to emcli

$<OMS_HOME>/bin/emcli login -username=sysman -password=<password> 
$<OMS_HOME>/bin/emcli sync 
$<OMS_HOME>/bin/emcli get_supported_platforms

Pull the agent image to a directory on the OMS server, Suggest using the directory in this example. Use the platform and version from the above output in this command

emcli get_agentimage -destination=/app/oracle/product/Middleware_R2/oms/agent_image -platform="HP-UX Itanium" -version=12.1.0.2.0

Copy the zip file that is produced to this location on the shared drives ( NFS mounted drive that is available as read-only on all servers)

/software/oraclesoft/Grid_Agents/12.1/<Platform>/<Environment>

An install script and a response file will need to be created to install the agent Copy an existing script into
/software/oraclesoft/Grid_Agents/12.1/install_scripts/<Environment> And the response file into
/software/oraclesoft/Grid_Agents/12.1/resp_files Update both so they are specific to this environment Deploying the agent
Now that the scripts are in place you can deploy the agent

On the target server run one of the scripts in the table depending on the environment you want to add the target to.

Environment	Script
POC	/software/oraclesoft/Grid_Agents/12.1/install_scripts/WRAPPER/install_12c_agent_POC.sh
DEV	/software/oraclesoft/Grid_Agents/12.1/install_scripts/WRAPPER/install_12c_agent_DEV.sh
PROD	/software/oraclesoft/Grid_Agents/12.1/install_scripts/WRAPPER/install_12c_agent_PROD.sh

Currently the UNIX team will need to run the root.sh scripts The agent will now be present in the GUI and you can proceed with discovering and promoting the targets

The contents of the deploy script is

#!/bin/sh

TYPE=`uname`

if [ $TYPE = "HP-UX" ];
then
echo "this is HPUX"
/software/oraclesoft/Grid_Agents/12.1/install_scripts/PROD/HPUX_agent_install.sh elif [ $TYPE = "Linux" ];
then
echo "this is Linux"
/software/oraclesoft/Grid_Agents/12.1/install_scripts/PROD/linux_agent_install.sh else
echo echo "this is not HPUX or Linux"
fi

and the response file looks like this
OMS_HOST=server_name
EM_UPLOAD_PORT=4900

AGENT_REGISTRATION_PASSWORD=xxxxxxx
AGENT_INSTANCE_HOME=/app/oracle/product/gc12.1/agent12c
AGENT_PORT=1830

b_startAgent=true
s_agentHomeName=agent12c
emStageDir=/app/oracle/export
#-------------------------------------------------------------------------------
#s_agentServiceName:<String> Sets the agent Service Name and this variable can be
#      used to overrite the agent service name calculated by the install. This is
#      required for only Windows.
#      Example:
#      s_agentServiceName = "Oracleagent12gAgent"      ;  default value
#      s_agentServiceName = "GridAgent"                 ;  User specified value
#-------------------------------------------------------------------------------
#s_agentServiceName=""
####################################################################################
#Please Don't change the values of these variables
####################################################################################
#-------------------------------------------------------------------------------
#EM_INSTALL_TYPE:<STRING> install type
#-------------------------------------------------------------------------------
EM_INSTALL_TYPE="AGENT" Hope that helps - I might blog that actually in a bit more detail John

www.jhdba.wordpress.com

>I have my 12C Cloud control box up and running now and I'm working on agent
>deploys. Am I correct in my reading interpretations and such that the only
>way to deploy the agent from the OMS using the "Add Target" process is that
>you must have CYGWIN or SSHD running on the target machine?
>
> Thanks
> Bob
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>

--
http://www.freelists.org/webpage/oracle-l


______________________________________________________________________
Wm Morrison Supermarkets Plc is registered in England with number 358949. The registered office of the company is situated at Gain Lane, Bradford, West Yorkshire BD3 7DL. This email and any attachments are intended for the addressee(s) only and may be confidential. 

If you are not the intended recipient, please inform the sender by replying to the email that you have received in error and then destroy the email. 
If you are not the intended recipient, you must not use, disclose, copy or rely on the email or its attachments in any way. 

This email does not constitute a contract in writing for the purposes of the Law of Property (Miscellaneous Provisions) Act 1989.

Our Standard Terms and Conditions of Purchase, as may be amended from time to time, apply to any contract that we enter into. The current version of our Standard Terms and Conditions of Purchase is available at: http://www.morrisons.co.uk/gscop

Although we have taken steps to ensure the email and its attachments are virus-free, we cannot guarantee this or accept any responsibility, 
and it is the responsibility of recipients to carry out their own virus checks. 
______________________________________________________________________
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Aug 19 2013 - 10:34:19 CEST

Original text of this message