Skip to Main Content

Enterprise Manager

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Installing Oracle Management Agents on Windows HA (Failover Cluster Environments)

3516385Oct 12 2017 — edited Oct 28 2017

Hello Experts,

I'm trying to install Oracle cloud control agent on windows fail-over cluster, but I have not luck.

I founded the MOS article Doc ID 464191.1 (How to Configure Enterprise Manager Grid Control Agents in Windows HA - Failover Cluster Environments).

My environement description:

1. node1,node2 - hostnames of windows cluster nodes

2. cluster-main - hostname of cluster

3. srv-smb - hostname of fileserver

4. oem12 - Oracle Enterprise Manager 12c server

Oracle Enterprise Manager  version is 12.1.0.5.0

Oracle Management Agent version is 12.1.0.5.0

OS is Windows Server Standard 2016 Eng

According to the Doc ID 464191.1 I did the following steps

1. install agent on each node of cluster

2. deploy virtual agent from each node of cluster

node1

emctl deploy agent -n PV_Agent  -u domain\user -p  "PASSWORD"  \\srv-smb\oracle\PV_agent  cluster-main:3872  node1:3872

node2

emctl deploy agent -n PV_Agent  -u domain\user -p  "PASSWORD"  \\srv-smb\oracle\PV_agent  cluster-main:3872  node2:3872

3.edit emp.properties of the virtual agent and change the value of the parameter AgentListenOnAllNICs

AgentListenOnAllNICs=false

4. add service "PV_agent" into resource group of cluster

5. run secure operation for virtual agent

\\srv-smb\oracle\PV_agent\bin\emctl.bat secure agent

6. start service PV_Agent using the Failover Cluster Manager

7. after this in Oracle Enterprise Manager using autodiscovery find new added target agent and promote this

C:\Windows\system32>\\srv-smb\oracle\PV_agent\bin\emctl.bat config agent listTargets

[cluster-main:3872, oracle_emd]

So, target of type "host" was not discovered automatically. I run this command:

\\srv-smb\oracle\PV_agent\bin\emctl.bat config agent addInternalTargets

C:\Windows\system32>\\srv-smb\oracle\PV_agent\bin\emctl.bat config agent listTargets

Oracle Enterprise Manager Cloud Control 12c Release 5

Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.

[cluster-main, host]

[cluster-main:3872, oracle_emd]

After this I restarted PV_Agent and run command:

\\srv-smb\oracle\PV_agent\bin\emctl.bat upload agent

In Enterprise Manager the status of targets is UP and OK, but for host target I get the message "Unable to obtain definition for selected metrics" on the all graphics.

I think, that main problem is that the target of type "oracle_home" is not was discovered automatically.

I spent a lot of time trying to find the cause of this problem.

I founded mismatches between deploy of usual agent and debploy of virtual agent.

For usual agent on host named node1 there is log for target of type "host"

D:\oracle\P_agent\sysman\log\targets\host\node1\SEG_some_id_datetime.log

2017-09-08 05:20:43,951 INFO - The target is being added

2017-09-08 05:20:44,529 INFO - The new target properties: disallow_redundancy_group (1), TargetVersion (HostTargetVersion)

2017-09-08 05:20:44,576 INFO - Starting computation of the target dynamic properties

2017-09-08 05:20:48,076 INFO - Finished dynamic properties computation (total time 3 453 ms). Number of DP computed: 4. Number of DP with error: 0. Number of dynamic properties that were added: 14. Dynamic properties with changed value: [OS, Version, OS_patchlevel, Platform, Boottime, IP_address, HostTargetVersion, Distribution, ARUID, HARDWARE_TYPE, open_port_max, insecure_ser_max, execute_stack_max, file_sys_type_max]. Dynamic properties that were loaded from the cache: []. Timeout=false

2017-09-08 05:20:48,185 INFO - Scheduling upload of target dynamic properties because it is a new target: <Target TYPE="host" node1" DISPLAY_NAME="node1" ON_HOST="" EMD_URL="https://oem12:3872/emd/main/" TIMEZONE_REGION="" TYPE_DISPLAY_NAME="Host" IDENTIFIER="TARGET_GUID=...">

  <Property NAME="OS" VALUE="Windows" IS_DYNAMIC="TRUE"/>

  <Property NAME="Version" VALUE="Windows Server 2016 Standard Server" IS_DYNAMIC="TRUE"/>

  <Property NAME="HostTargetVersion" VALUE="10.0.14393.0.0" IS_DYNAMIC="TRUE"/>

...

  <Property NAME="ARUID" VALUE="233" IS_DYNAMIC="TRUE"/>

  <Property NAME="HARDWARE_TYPE" VALUE="Generic" IS_DYNAMIC="TRUE"/>

  <Property NAME="open_port_max" VALUE="-1" IS_DYNAMIC="TRUE"/>

  <Property NAME="insecure_ser_max" VALUE="25" IS_DYNAMIC="TRUE"/>

  <Property NAME="execute_stack_max" VALUE="1" IS_DYNAMIC="TRUE"/>

  <Property NAME="file_sys_type_max" VALUE="1" IS_DYNAMIC="TRUE"/>

</Target>

So we can saw a lot of dynamic properties for target "host".

But in case of virtual agent the log is differ and not have records about dynamic properties of host:

\\srv-smb\oracle\PV_agent\sysman\log\targets\host\cluster-main\SEG_some_id_datetime.log

Virtual agent

017-10-12 10:25:31,286 INFO - The target is being added

2017-10-12 10:25:31,792 INFO - The new target properties: disallow_redundancy_group (1), TargetVersion (HostTargetVersion)

2017-10-12 10:25:31,851 INFO - Starting computation of the target dynamic properties

2017-10-12 10:25:32,434 INFO - The target is being marked as in DOWN state

2017-10-12 10:25:32,442 INFO - Finished dynamic properties computation (total time 499 ms). Number of DP computed: 1. Number of DP with error: 0. Number of dynamic properties that were added: 0. Dynamic properties with changed value: []. Dynamic properties that were loaded from the cache: []. Timeout=false

2017-10-12 10:25:32,654 INFO - Scheduling upload of target dynamic properties because it is a new target: <Target TYPE="host" NAME="cluster-main" DISPLAY_NAME="cluster-main" ON_HOST="" EMD_URL="https://oem12:3872/emd/main/" TIMEZONE_REGION="" TYPE_DISPLAY_NAME="Host" IDENTIFIER="TARGET_GUID=..."/>

The main difference beetween usual and virtual agents, that the usual agent was deployed with many of plugins. So I assume, that virtual agent can not found all need targets without plugins.

I tried to install plugin using emcli on Enterprise Manager server, but  I have error:

$ emcli deploy_plugin_on_agent -agent_names="cluster-main:3872" -plugin="oracle.sysman.oh:12.1.0.5.0"

Prerequisites check failed

For agent : https://cluster-main:3872/emd/main/

        The Management Agent is not configured properly. The required host target is not found.

Help me, please, find a solution of this problem.

Best Regards,

Aleksander

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2017
Added on Oct 12 2017
2 comments
346 views