Deploying Oracle Enterprise Manager 12c agents on Solaris 11.X

Share this post on:

Deploying Enterprise Manager agents on Solaris is not a difficult task, and is similar to a Linux deployment with a few minor changes.

First, like any agent you need to download the agent, and the apply the agent. When done, you should have something like this.

image

Next we do a normal agent push, but first you need to make the following changes to the target.

First, for the installer to work cleanly, the oracle user needs need root role access. In Solaris 11, root is no longer a user, but instead it is a role. This allows for more security than a traditional root account, but for the installer to run correctly, the oracle user needs to has root access for the finish scripts to run. We will use the usermod command to enable this access.

root@sparc01d4:~# usermod -R root oracle
UX: usermod: oracle is currently logged in, some changes may not take effect until next login.

Next we need to install one package, which is required. Luckily, with Solairs 11, we have the pkg command, which simplifies installation and patching. It works similar to the yum command.

root@sparc01d4:~# pkg install SUNWhea
Packages to install:  1
Create boot environment: No
Create backup boot environment: No
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                1/1     1637/1637      3.4/3.4  500k/s

PHASE                                          ITEMS
Installing new actions                     1762/1762
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1
root@sparc01d4:~#

 

Next, we need to add a few lines to the sudoers file to let the oracle user run some post installation scripts. We need to change the defualt behavior for visiblepw, to enable access via scripts, and also enable oracle access to sudo as root. Two lines will be appended to the sudoers file.

Defaults visiblepw
oracle ALL=(ALL) ALL

 

root@sparc01d4:/etc# echo “Defaults visiblepw” >> sudoers
root@sparc01d4:/etc# echo “oracle ALL=(ALL) ALL”  >> sudoers
root@sparc01d4:/etc# tail sudoers
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with ‘Defaults targetpw’

## Read drop-in files from /etc/sudoers.d
## (the ‘#’ here does not indicate a comment)
#includedir /etc/sudoers.d
Defaults visiblepw
oracle ALL=(ALL) ALL

 

Now that the house keeping is done, we can so a normal agent push.

First, we need to start the process to add a host target.

image

 

 

Next, click on the Add Host

image

 

Now, manually add a host

image

 

Type in the host name, and make sure you pick the correct Operating System, and click next.

image

Next we need to tell EM where to put the agent, and what credentials will be used for the push.

image

Verify the info, and click deploy

image

 

The agent push should now run, and in a few minutes your should have a successfully deployed agent.

 

image

 

Now it’s time to promote your discovered targets on the host. Any questions? Feel free to drop me a note.

Share this post on:

Author: admin

Erik is currently an Oracle ACE Director and VP of Enterprise Transformation at Mythics, serving as a lead strategist for Federal, State and Local Government and Commercial customers throughout the United States. These customer engagements include enterprise cloud transformations, data center consolidation and modernization efforts, Big Data projects and implementations of Oracle Engineered Systems. He is a board member of the DC metro area National Capital Oracle User Group, a board member of the Independent Oracle Users Group (IOUG), Cloud Computing Special Interest Group (SIG) and he is actively involved with the Oracle Enterprise Manager SIGs. Erik presents frequently at conferences, including Oracle OpenWorld, Oracle FedForum, COLLABORATE and other user groups and conferences around the United States. He has worked with Oracle and Sun Systems since the mid 90s, and is experienced with most of the core Oracle technologies.

When not flying to the far points of the country from the Atlanta Metro area, he enjoys spending time with his family at their observatory, where the telescopes outnumber the people.

View all posts by admin >

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.