deploy agent in em12c

11
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

Upload: osama-mustafa

Post on 13-May-2015

999 views

Category:

Technology


0 download

DESCRIPTION

Deploy Agent in em12c Twitter : @osamaoracle

TRANSCRIPT

Page 1: Deploy agent in em12c

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

Page 2: Deploy agent in em12c

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.

Page 3: Deploy agent in em12c

Deploy Agent In Oracle Enterprise manager 12c

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

Page 4: Deploy agent in em12c

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.

Page 5: Deploy agent in em12c

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"

Page 6: Deploy agent in em12c

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

Page 7: Deploy agent in em12c

Deploy Agent In Oracle Enterprise manager 12c

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

Page 8: Deploy agent in em12c

Deploy Agent In Oracle Enterprise manager 12c

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

Now you need to configure Job Summary

Page 9: Deploy agent in em12c

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:

Page 10: Deploy agent in em12c

Deploy Agent In Oracle Enterprise manager 12c

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

Check the Host

Page 11: Deploy agent in em12c

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