Grid Control hostname: grid.
The managed host: standby (this was the purpose, in my case, a standby server).
[oracle@standby agent_software]$ ll
total 571528
-rw-r----- 1 oracle oinstall 292032498 Jun 23 14:34 12.1.0.1.0_AgentCore_226.zip
-rwxr-xr-x 1 oracle oinstall 7630039 Jun 23 13:48 12.1.0.1.0_PluginsOneoffs_226.zip
-rw-rw-r-- 1 oracle oinstall 284323730 Feb 11 2012 agentcoreimage.zip
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:08 agentDeploy_2015-06-23_15_08_19.err
-rw-r--r-- 1 oracle oinstall 137910 Jun 23 15:08 agentDeploy_2015-06-23_15_08_19.log
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:11 agentDeploy_2015-06-23_15_11_20.err
-rw-r--r-- 1 oracle oinstall 125429 Jun 23 15:11 agentDeploy_2015-06-23_15_11_20.log
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:12 agentDeploy_2015-06-23_15_12_06.err
-rw-r--r-- 1 oracle oinstall 125429 Jun 23 15:12 agentDeploy_2015-06-23_15_12_06.log
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:13 agentDeploy_2015-06-23_15_13_03.err
-rw-r--r-- 1 oracle oinstall 70832 Jun 23 15:13 agentDeploy_2015-06-23_15_13_03.log
-rwxrwxr-x 1 oracle oinstall 17998 Feb 11 2012 agentDeploy.sh
-rw-rw-r-- 1 oracle oinstall 145 Feb 11 2012 agentimage.properties
-rw-rw-r-- 1 oracle oinstall 4039 Jun 23 15:13 agent.rsp
drwxr-xr-x 7 oracle oinstall 4096 Jun 23 13:48 plugins
-rwxr-xr-x 1 oracle oinstall 223 Jun 23 13:48 plugins.txt
-rwxr-xr-x 1 oracle oinstall 145976 Feb 11 2012 unzip
> /u01/app/oracle/agent12g/core/12.1.0.1.0/root.sh
Put the proper settings into /etc/hosts files, on both machines.
On the grid:
cd /u01/app/oracle/Middleware/oms
cd bin
./emcli login -username=sysman -password=pass
Login successful
Synchronize EMCLI
./emcli sync
Synchronized successfully
Check the platforms for which the Management Agent software is available on the OMS host
./emcli get_supported_platforms
Getting list of platforms …
Check the logs at /u01/app/oracle/Middleware/oms/bin/agent.log
About to access self-update code path to retrieve the platforms list..
Getting Platforms list …
———————————————–
Version = 12.1.0.1.0
Platform = Linux x86-64
———————————————–
Platforms list displayed successfully.
Download the Management Agent software from Oracle Software Library to a temporary directory on the OMS host
./emcli get_agentimage -destination=/u01/app/oracle/agent_software -platform=”Linux x86-64″ -version=”12.1.0.1.0″
Platform:Linux x86-64
Destination:/u01/app/oracle/agent_software
=== Partition Detail ===
Space free : 14 GB
Space required : 1 GB
Check the logs at /u01/app/oracle/agent_software/get_agentimage_2012-04-15_22-50-00-PM.log
Setting property ORACLE_HOME to:/u01/app/oracle/Middleware/oms
calling pulloneoffs with arguments:/u01/app/oracle/Middleware/oms/u01/app/oracle/Middleware/oms/sysman/agent/12.1.0.1.0_AgentCore_226.zip12.1.0.1.0linux_x64
Check this logs for more information: /u01/app/oracle/Middleware/oms/sysman/prov/agentpush/logs
[oracle@gridcontrol agent_software]$ cd /u01/app/oracle/agent_software
[oracle@gridcontrol agent_software]$ ll
total 285476
-rw-r----- 1 oracle oinstall 292032498 Jun 23 06:49 12.1.0.1.0_AgentCore_226.zip
-rw-r--r-- 1 oracle oinstall 1806 Jun 23 06:49 get_agentimage_2015-06-23_06-48-39-AM.log
[oracle@gridcontrol agent_software]$
[oracle@gridcontrol agent_software]$ ll
total 285476
-rw-r----- 1 oracle oinstall 292032498 Jun 23 06:49 12.1.0.1.0_AgentCore_226.zip
-rw-r--r-- 1 oracle oinstall 1806 Jun 23 06:49 get_agentimage_2015-06-23_06-48-39-AM.log
[oracle@gridcontrol agent_software]$
Transfer the downloaded zip file to the host where you would like to install the 12c management agent
scp 12.1.0.1.0_AgentCore_226.zip oracle@standby:/u01/app/oracle/agent_software
Unzip the file on the target host
Check the directory contents
[oracle@standby ~]$ cd /u01/app/oracle/agent_software[oracle@standby agent_software]$ ll
total 571528
-rw-r----- 1 oracle oinstall 292032498 Jun 23 14:34 12.1.0.1.0_AgentCore_226.zip
-rwxr-xr-x 1 oracle oinstall 7630039 Jun 23 13:48 12.1.0.1.0_PluginsOneoffs_226.zip
-rw-rw-r-- 1 oracle oinstall 284323730 Feb 11 2012 agentcoreimage.zip
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:08 agentDeploy_2015-06-23_15_08_19.err
-rw-r--r-- 1 oracle oinstall 137910 Jun 23 15:08 agentDeploy_2015-06-23_15_08_19.log
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:11 agentDeploy_2015-06-23_15_11_20.err
-rw-r--r-- 1 oracle oinstall 125429 Jun 23 15:11 agentDeploy_2015-06-23_15_11_20.log
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:12 agentDeploy_2015-06-23_15_12_06.err
-rw-r--r-- 1 oracle oinstall 125429 Jun 23 15:12 agentDeploy_2015-06-23_15_12_06.log
-rw-r--r-- 1 oracle oinstall 0 Jun 23 15:13 agentDeploy_2015-06-23_15_13_03.err
-rw-r--r-- 1 oracle oinstall 70832 Jun 23 15:13 agentDeploy_2015-06-23_15_13_03.log
-rwxrwxr-x 1 oracle oinstall 17998 Feb 11 2012 agentDeploy.sh
-rw-rw-r-- 1 oracle oinstall 145 Feb 11 2012 agentimage.properties
-rw-rw-r-- 1 oracle oinstall 4039 Jun 23 15:13 agent.rsp
drwxr-xr-x 7 oracle oinstall 4096 Jun 23 13:48 plugins
-rwxr-xr-x 1 oracle oinstall 223 Jun 23 13:48 plugins.txt
-rwxr-xr-x 1 oracle oinstall 145976 Feb 11 2012 unzip
Edit the response file agent.rsp (mind the proper password)
OMS_HOST=”grid”
EM_UPLOAD_PORT=”4900″
AGENT_REGISTRATION_PASSWORD=”password”
AGENT_INSTANCE_HOME=”/u01/app/oracle/agent12g/agent_inst”
AGENT_PORT=”3872″
ORACLE_HOSTNAME=”standby”
Run the agent deployment script
> ./agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/agent12g RESPONSE_FILE=/u01/app/oracle/agent_software/agent.rsp
After tons of feedback, assuming that all is ok:
> su -
Finished product-specific root actions.
/etc exist
Finished product-specific root actions.
Check the status of the agent on the target host where it has been deployed
>cd /u01/app/oracle/agent12g/core/12.1.0.1.0/bin
> ./emctl status agent
........................... bla bla ............
—————————————————————
Agent is Running and Ready
Enjoy!
Niciun comentariu:
Trimiteți un comentariu