Grid Control HA: REPOSITORY_URL Value of the Agent is Changing Back to the OMS Physical Hostname Inspite of Being Secured with the SLB Hostname (Doc ID 1317801.1)

Last updated on MAY 13, 2013

Applies to:

Enterprise Manager Base Platform - Version 11.1.0.1 to 11.1.0.1.7 [Release 11.1]
Information in this document applies to any platform.

Symptoms

Multiple 11g OMS have been configured behind Server Load Balancer (SLB) using the steps in <Note 866732.1>: How to Configure 2 OMS’s Using F5 BigIP SLB.
All the OMSs have been secured against SLB host name using the following command:

$cd  <OMS_HOME>/bin
$./emctl secure oms -host  <slb_hostname> [-slb_console_port <slb UI port>] [-slb_port <slb upload port>]

For example:

$./emctl secure oms -host slbmachine.domain

The Agents communicating with this EM setup have also been secured against the SLB hostname using:

$ cd <AGENT_HOME>/bin
emctl secure agent -emdWalletSrcUrl https://slbmachine.domain:1159/em

There are no errors and the 'emctl agent upload' command is successful as well.

The following symptoms are seen:

1. Value of the REPOSITORY_URL parameter in the output of 'emctl status agent' and in the <AGENT_HOME>/sysman/config/emd.properties file shows that the URL has been reverted back to the phyisical hostname of the OMS machine instead of SLB name.

2. Manually changing the REPOSITORY_URL parameter in the <AGENT_HOME>/sysman/config/emd.properties file to the load balancer hostname and then starting the agent without re-securing it returns the error:

Common Name = "omsmachine.domain" Does not Match Hostname = "slbmachine.domain"

3. In another scenario the Agent's <AGENT_HOME>/sysman/log/emagent.trc reports that the agent is blocked and needs to be resynced from the console.
    But when the agent has been re-synchronised from the console, the REPOSITORY_URL value changes back to the physical hostname of the OMS.

Example:

Multi OMS setup, all the OMS's secured with SLB Hostname using

$ cd $OMS_HOME/bin
$ ./emctl secure oms -host slbmachine.domain -secure_port 1159 -slb_port 1159 -slb_console_port 443 -lock

$ ./emctl status oms -details
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : omsmachine.domain
HTTP Console Port : 7788
HTTPS Console Port : 7799
HTTP Upload Port : 4889
HTTPS Upload Port : 1159
SLB or virtual hostname: slbmachine.domain
HTTPS SLB Upload Port : 1159
HTTPS SLB Console Port : 7799
Agent Upload is locked.
OMS Console is unlocked.
Active CA ID: 1
oem-prd01 3:


Once this is done secured the agent using:
$ cd $AGENT_HOME/bin
$ ./emctl secure agent -emdWalletSrcUrl https://slbmachine.domain:1159/em

$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.5.0
OMS Version : 11.1.0.1.0
Protocol Version : 11.1.0.0.0
Agent Home : /u01/oracle/oem/agent10g
Agent binaries : /u01/oracle/oem/agent10g
Agent Process ID : 4929
Parent Process ID : 4922
Agent URL : https://agentmachine.domain:3872/emd/main/
Repository URL : https://omsmachine.domain:1159/em/upload
Started at : 2011-03-21 16:56:53
Started by user : oracle
Last Reload : 2011-03-21 16:56:53
Last successful upload : 2011-03-21 18:38:37
Total Megabytes of XML files uploaded so far : 12.99
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 66.32%
Last successful heartbeat to OMS : 2011-03-21 18:38:24
---------------------------------------------------------------
Agent is Running and Ready

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms