deploy agent in em12c

Post on 13-May-2015

999 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Deploy Agent in em12c Twitter : @osamaoracle

TRANSCRIPT

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 1

After I post about how to install Oracle Enterprise manager (em12c) today I will talk how to deploy em12c agent

There are two methods to do that

1) Configuring Automatic Discovery 2) Adding targets manually

I will describe the both :) each one separately.

Before deploy you need to decide if you want to use Oracle user or root user the below steps you have to do before using oracle:

[root@em12c ~]# vi /etc/sudoers

And change and add the following lines:

Comment this line:

#Defaults requiretty

Add the below line

oracle ALL=(ALL) ALL

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 2

And remove ! From this line:

Defaults visiblepw

Now On em12c there’s something called privilege delegation

Privilege delegation allows a logged-in user to perform an activity with the privileges of another user. Sudo and PowerBroker are privilege delegation tools that allow a logged-in user to be assigned these privileges. These privilege delegation settings will be used for all provisioning and patching activities on these hosts.

Read more here.

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 3

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 4

In the screen below add these lines:

/usr/bin/sudo -u %RUNAS% %COMMAND%

/usr/bin/sudo ---> location for sudo command.

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 5

After all the above steps are done let's configure Auto Discovery

Setup --> add target --> configure auto discovery the below screen will open, choose the first option "Host and oracle vm manager Discovery using Ip scan"

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 6

Press create Button

On add Button new Panel Will open, Choose your Host and Choose the Range Ip for scan The Format Mentioned above examples:

192.168.1.240-250

192.168.240/10

192.168.240,241

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 7

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 8

Now you need to configure Job Summary

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 9

The job will start immediately as we choose press "Refresh Ip Scan Result" to check the result. You can check it also from here:

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 10

Check the Host

Deploy Agent In Oracle Enterprise manager 12c

Osama Mustafa - Https://osamamustafa.blogspot.com Page 11

Next Post will be How to Add Agent Manually.

Thank you

Osama Mustafa

Https://osamamustafa.blogspot.com

top related