Database Reference
In-Depth Information
Using the AgentPull Script
To use the
AgentPull
script, follow these steps:
1.
You need to create a user for the management agent, create the required directories, and
give permission to the new management agent user. In this example, you will create the
ORACLE
user, so log in as
ROOT
and run the following commands:
[root@target ~]# groupadd oinstall
[root@target ~]# groupadd dba
[root@target ~]# useradd -g oinstall -G dba oracle
[root@target ~]# passwd oracle
[root@target ~]# mkdir -p /u01/agent
[root@target ~]# chown -R oracle:oinstall /u01/agent
If there's already an
ORACLE
user (and you want to use it for the management agent), you
don't need to drop and re-create it.
After you create the mandatory directories, open an X Window session as the
ORACLE
(management agent) user and download the
AgentPull
script from the OMS.
2.
If the target host runs on a Unix box, access the following URL from the host:
https://<OMS_HOST>:<OMS_PORT>/em/install/getAgentImage
For example:
If the destination host runs on Microsoft Windows, access the following URL from the host,
which adds
?script=bat
to the end of the previous URL:
It's also possible to download the
AgentPull.sh
script with
curl
or
wget
. To download
the script using
wget
, issue the following commands. Notice that you download
getAgentImage
, and then change the name to
AgentPull.sh
.
3.
[root@target ~]# wget
https://cloudcontrol12.testdomain.com:7799/em/install/getAgentImage
--no-check-certificate
[root@target ~]# mv getAgentImage AgentPull.sh
To download via
curl
, issue the following command:
[root@target ~]# curl "
https://cloudcontrol12.testdomain.com:7799/em/install/getAgentImage
"
--insecure -o agentPull.sh
■
the preceding wget and curl examples actually download a file named
getAgentImage
. the file is then
renamed after the download (
wget
) or as part of the downlad process (
curl
). the file is renamed to
AgentPull.sh
.
Note