In my opinion, Enterprise Manager Cloud Control server should be able to connect My Oracle Support. You may use a proxy if you don’t want it to have a direct connection. Sometimes, security policies do not allow your Cloud Control server connect internet in any way. In this case, you can use it in offline mode, and still can use self-update and patch management features.
First of all, you need to activate “offline” mode. Enterprise Manager Cloud Control will not switch to offline mode when it can connect to My Oracle Support. You need to switch it manually. Click “offline patching” under the “provisioning & patching” menu. Select “offline” for connection mode, and click “apply” button.
To be able to use self-update features (in online or offline mode), you need to set “software library”. Click “software library” under the “provisioning & patching” menu. Click the plus button and chose a directory to store all files for patching and deploying.
Click “setup”, and then “extensibility” and click to “Self Update”, you’ll see that we’re in offline mode, click “check updates”. Enterprise Manager will show you the URL of the updates catalog. Download it (of course you need MOS credentials) on a PC which is connected to internet, and transfer it to your Cloud Control Server.
We’ll use “emcli” tool to import the catalog, good thing is, emcli tool is already installed on Enterprise Manager Cloud Control server, but I didn’t see it in documents. So I’ll describe what you need to do to install emcli tool to (any server):
- Download and install latest Java 1.6.x
- Download emclikit.jar https://emcc_host:emcc_port/em/console/emcli/download
- Install it: java -jar emclikit.jar client -install_dir=/oracle/emcli
- Configure it: /oracle/emcli/emcli setup -url=https://emcc_host:emcc_port/em/ -username=SYSMAN
I’ll write more about it in future, and give detailed samples but now let’s focus on adding new agents. As I said, I’ll use the emcli of the Enterprise Manager Cloud Control and it’s located it $OMS_HOME/oms/bin/emcli
To be able to use emcli of EMCC, you need to login and then import the catalog:
1 2 3 4 |
/oracle/Middleware/oms/bin/emcli login -username=SYSMAN /oracle/Middleware/oms/bin/emcli import_update_catalog \ -file=/home/oracle/p9348486_112000_Generic.zip -omslocal /oracle/Middleware/oms/bin/emcli logout |
As you may see, I copied the file which I downloaded (p9348486_112000_Generic.zip) to /home/oracle. Now let’s check the self-update again.
So we’re still offline but we have refreshed our catalog. Now let’s download an agent. Click agents.
Select an agent (I selected the agent for Solaris x86), then click “download”. Enterprise Manager will show the URL of the agent. Download the file on another PC and transfer the zip file to the Enterprise Manager Cloud Control server.
Let’s import the agent software:
1 2 3 4 |
/oracle/Middleware/oms/bin/emcli login -username=SYSMAN /oracle/Middleware/oms/bin/emcli import_update -omslocal \ -file=/home/oracle/p13448057_112000_Generic.zip /oracle/Middleware/oms/bin/emcli logout |
Now let’s check again the self-update page. As we see the new agent is downloaded. Click “apply” to make it ready for deployment. A background job will be created, and after a few seconds, you’ll see that its status will change to “applied” (refresh page). When it’s applied, you can start deploying it.
Petter
Gokhan Atil
Danilo
Gokhan Atil
Keith
Gokhan Atil
Emre Baransel
Anjan Shrestha
Gokhan Atil
Dmitriy Trubov
Paulo Souto
Gokhan Atil
Özgür Umut Vurgun
sree
Manish
Michaelzhang
Jochen
Gokhan Atil
deepthi
Gokhan Atil
Bob Lalone
Gokhan Atil
Ömer Arslan
pedro
Bala
Aleksandar
Rik Brouwers
Gokhan Atil
Mohammed
Jim Rivers
Anand
VinC
nicolas
Fernando
ipung
Gokhan Atil
Chris
kvm
erkan ülgey
fazil
Pingback: Usefull links « Stuff DBA
Olie
GBuc DBA
Gokhan Atil