In case, your target systems have no support for SSH, you can use agentDeploy script to deploy Management Agents. To be able to use this method, you need to create a user for management agent and create required directories and give permission to the Management agent user.
Let’s say we’ll create a group named “oinstall” and a user named “oracle” belongs to this group, and install the agent software to “/u01/agent”. Login as root user and issue the following commands:
1 2 3 4 5 |
[root@targetsystem ~]# groupadd oinstall [root@targetsystem ~]# useradd -g oinstall oracle [root@targetsystem ~]# passwd oracle [root@targetsystem ~]# mkdir -p /u01/agent [root@targetsystem ~]# chown -R oracle:oinstall /u01/agent |
Of course, I assume that you don’t have oracle user and oinstall group, and there’s no directory named “/u01/agent”. Instead of creating new user, group and directory, you can use an existing user, group and directory (if the directory is empty). Do not forget to check if OMS and target system can resolve each other’s host name!
Login to the OMS host as oracle user (again I assume you used oracle to install OMS), and log in to OEM using emcli:
1 |
[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli login -username=sysman |
Oracle documents sugget us to synchronize EMCLI:
1 |
[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli sync |
List the platforms for which the Management Agent software is available on the OMS host:
1 2 3 4 5 6 7 8 9 10 |
[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli get_supported_platforms Getting list of platforms ... Check the logs at /u01/app/Middleware/gc_inst/em/EMGC_OMS1/.../.emcli/agent.log About to access self-update code path to retrieve the platforms list.. Getting Platforms list ... ----------------------------------------------- Version = 12.1.0.2.0 Platform = Linux x86-64 ----------------------------------------------- Platforms list displayed successfully. |
Create the installation package for the Management Agent software in a directory on the OMS host:
1 2 |
[oracle@cloudcontrol12 ~]$ /u01/app/Middleware/oms/bin/emcli get_agentimage \ -destination=/home/oracle -platform="Linux x86-64" -version=12.1.0.2.0 |
You’ll have a new file in the destination directory. Its name will be something like 12.1.0.2.0_AgentCore_XXX.zip. Transfer this file to the target system. You may use ftp, scp or put that file to a shared directory and copy to target system. Then extract the zip file (on target system):
1 2 3 4 5 6 7 8 |
[oracle@targetsystem ~]$ unzip 12.1.0.2.0_AgentCore_226.zip -d agentsetup Archive: 12.1.0.2.0_AgentCore_226.zip inflating: agentsetup/unzip inflating: agentsetup/agentDeploy.sh inflating: agentsetup/agentimage.properties inflating: agentsetup/agent.rsp extracting: agentsetup/agentcoreimage.zip extracting: agentsetup/12.1.0.2.0_PluginsOneoffs_226.zip |
Enter the agentsetup directory and edit the agent response file:
1 2 |
[oracle@targetsystem ~]$ cd agentsetup [oracle@targetsystem agentsetup]$ vi agent.rsp |
Modify the response file according to your OMS configuration:
1 2 3 4 5 6 7 8 |
OMS_HOST=cloudcontrol12.gokhanatil.com EM_UPLOAD_PORT=4900 AGENT_REGISTRATION_PASSWORD=<registration_password> AGENT_INSTANCE_HOME=/u01/agent AGENT_PORT=3872 b_startAgent=true ORACLE_HOSTNAME=targetsystem.gokhanatil.com s_agentHomeName="agent12gR2" |
Run the agentDeploy.sh script to deploy the agent:
1 2 |
./agentDeploy.sh RESPONSE_FILE=/home/oracle/agentsetup/agent.rsp \ AGENT_BASE_DIR=/u01/agent |
After the script is completed successfully, open a new terminal window, login as “root” and run the configuration script (the location of the script is written in the output of agentDeploy.sh):
1 2 |
[root@targetsystem ~]# /u01/agent/core/12.1.0.2.0/root.sh Finished product-specific root actions. |
You can check the agent’s status:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
[oracle@targetsystem agentsetup]$ /u01/agent/core/12.1.0.2.0/bin/emctl status agent Oracle Enterprise Manager Cloud Control 12c Release 2 Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent Version : 12.1.0.2.0 OMS Version : 12.1.0.2.0 Protocol Version : 12.1.0.1.0 Agent Home : /u01/agent Agent Binaries : /u01/agent/core/12.1.0.2.0 Agent Process ID : 14620 Parent Process ID : 14578 Agent URL : https://targetsystem.gokhanatil.com:3872/emd/main/ Repository URL : https://cloudcontrol12.gokhanatil.com:4900/empbs/upload Started at : 2012-10-12 06:10:12 Started by user : oracle Last Reload : (none) Last successful upload : 2012-10-12 06:12:57 Last attempted upload : 2012-10-12 06:12:57 Total Megabytes of XML files uploaded so far : 0.01 Number of XML files pending upload : 0 Size of XML files pending upload(MB) : 0 Available disk space on upload filesystem : 89.15% Collection Status : Collections enabled Heartbeat Status : Ok Last attempted heartbeat to OMS : 2012-10-12 06:13:26 Last successful heartbeat to OMS : 2012-10-12 06:13:26 Next scheduled heartbeat to OMS : 2012-10-12 06:14:26 --------------------------------------------------------------- Agent is Running and Ready |
Jim Rivers
ricky
Yun-Ho
Gokhan Atil