Mass deployment for the Oracle Enterprise Manager Agent


In an Oracle Grid environment one of the first things you do once your nodes are stacked with an OS is installing the Oracle Enterprise Manager Grid Control Agent.

Once this Agent is in place you can start deploying the Oracle Stack from Enterprise Manager.

As always, there are multiple ways to do this. In this case I like to detail on a specific, quick and easy way: the Downloadable Agent.

In short this is how it works:

You have an already running EMGC (OMS) in place. This OMS provides an http url that will be used to download the Agent software. This downloading is done by a script called agentDownload.platform (where "platform" is the name of your OS, like linux).

This script takes care of downloading the installations files, a "response" file by wget and automatically (silently) installing the agent.

This all can be done within two minutes !

The only thing one has to do is go to the OMS_HOME/sysman/agent_download directory.
From here copy the script over to your node and run it. A good idea would be to have the script by default on your OS build.

The script needs at least three arguments:
1. the -m for for the location of the OMS (host name or ip-address)
2. the -r for the port number of that OMS address
3. the -b for the Oracle Base.

From this point on, everything is done automatically.

To give you some insight, some formatted output of one session is displayed below:


[oracle@gridnode04 scratch]$ ./agentDownload -m nlgrid02 -r 4889 -b /u01/app
agentDownload invoked on Tue Jan 27 19:45:25 CET 2009 with Arguments "-m nlgrid02 -r 4889 -b /u01/app"
Platform=Linux.i686, OS=linux
GetPlatform:returned=0, and os is set to: linux, platform=Linux.i686
Creating /scratch/agentDownload10.2.0.4.0Oui ...
LogFile for this Download can be found at: "/scratch/agentDownload10.2.0.4.0Oui/agentDownload012709194525.log"
Running on Selected Platform: Linux.i686
Installer location: /scratch/agentDownload10.2.0.4.0Oui
Downloading Agent install response file ...
--19:45:25-- http://nlgrid02:4889/agent_download/10.2.0.4.0/agent_download.rsp
Resolving nlgrid02... 192.168.200.179
Connecting to nlgrid02|192.168.200.179|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20066 (20K) [text/plain]
Saving to: `agent_download.rsp'

100%[===========================================================================================>] 20,066 --.-K/s in 0s

19:45:25 (126 MB/s) - `agent_download.rsp' saved [20066/20066]

Finished Downloading with Status=0
Downloaded response with status=0

Provide the Agent Registration password so that the Management Agent can communicate with Secure Management Service.
Note: You may proceed with the installation without supplying the password; however, Management Agent can be secured manually after
the installation.
If Oracle Management Service is not secured, agent will not be secured, so continue by pressing Enter Key.

Enter Agent Registration Password:
Downloading Oracle Installer ...
--19:45:30-- http://nlgrid02:4889/agent_download/10.2.0.4.0/linux/oui/oui_linux.jar
Resolving nlgrid02... 192.168.200.179
Connecting to nlgrid02|192.168.200.179|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44236848 (42M) [application/java-archive]
Saving to: `oui_linux.jar'

100%[===========================================================================================>] 44,236,848 117M/s in 0.4s

19:45:31 (117 MB/s) - `oui_linux.jar' saved [44236848/44236848]

Downloaded Oracle Installer with status=0
Downloading Unzip Utility ...
--19:45:31-- http://nlgrid02:4889/agent_download/10.2.0.4.0/linux/agent/install/unzip
Resolving nlgrid02... 192.168.200.179
Connecting to nlgrid02|192.168.200.179|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 101448 (99K) [text/plain]
Saving to: `unzip'

100%[===========================================================================================>] 101,448 --.-K/s in 0.001s

19:45:31 (127 MB/s) - `unzip' saved [101448/101448]

Adding execute permissions to unzip ...
Downloaded UnzipUtility with status=0
Verifying Installer jar ...
Verified InstallerJar with status=0
Unjarring Oracle Installer ...
Archive: /scratch/agentDownload10.2.0.4.0Oui/oui_linux.jar
creating: Disk1/stage/
creating: Disk1/stage/fastcopy/
inflating: Disk1/stage/fastcopy/setperms1.sh
inflating: Disk1/stage/fastcopy/oracle.swd_Complete_1.xml
inflating: Disk1/stage/fastcopy/oracle.swd_Complete_exp_1.xml

Installation in progress (Tuesday, January 27, 2009 7:45:49 PM CET)
............................................................... 35% Done.
............................................................... 70% Done.
................... 81% Done.
Install successful

Linking in progress (Tuesday, January 27, 2009 7:46:31 PM CET)
Link successful

Setup in progress (Tuesday, January 27, 2009 7:46:47 PM CET)
........... 100% Done.
Setup successful



Of course, there are more options, and more to tell.
For this I like to refer to OTN where excellent documentation is available.

Rene Kundersma
Oracle Expert Services, The Netherlands


Comments:

Your site is always up to date and fresh for me. Thanks for working hard on it.

Posted by guest on January 07, 2010 at 01:10 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Blog of Rene Kundersma, Principal Member of Technical Staff at Oracle Development USA. I am designing and evaluating solutions and best practices around database MAA focused on Exadata. This involves HA, backup/recovery, migration and database consolidation and upgrades on Exadata. Opinions are my own and not necessarily those of Oracle Corporation. See http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm.

Search

Archives
« February 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
       
       
Today