Securing Grid Control Agent Fails with 'The OMS is not set up for Enterprise Manager Security' Error (Doc ID 444901.1)

Last updated on NOVEMBER 07, 2013

Applies to:

Enterprise Manager Base Platform - Version 10.2.0.1 to 11.1.0.1 [Release 10.2 to 11.1]
Information in this document applies to any platform.
Checked for relevance on 16-Jul-2013

Symptoms

Trying to secure Grid Agent with the OMS fails with the following error:

emctl secure agent
..
Securing agent... Started.
Requesting an HTTPS Upload URL from the OMS... Failed.
The OMS is not set up for Enterprise Manager Security

-  For 10.2 Agent, the <AGENT_HOME>/sysman/log/secure.log shows:

2009-08-08 10:14:28,703 [main] ERROR agent.SecureAgentCmd secureAgent.228 - The OMS is not set up for Enterprise Manager Security.
2009-08-08 10:14:28,710 [main] ERROR agent.SecureAgentCmd main.207 - Failed to secure the Agent:
java.lang.Exception: The OMS is not set up for Enterprise Manager Security.
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.secureAgent(SecureAgentCmd.java:229)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.main(SecureAgentCmd.java:200)
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Starting agent ............................ started.

-  For a 11.1 Agent, the <AGENT_HOME>/sysman/log/secure.log would be:

2010-10-20 00:19:50,356 [main] INFO agent.SecureAgentCmd secureAgent.226 - Requesting an HTTPS Upload URL from the OMS
2010-10-20 00:19:50,358 [main] INFO agent.SecureAgentCmd openPage.829 - Opening: http://omsmachine.domain:4900/em/genwallet
2010-10-20 00:19:50,447 [main] INFO agent.SecureAgentCmd openPage.855 - Response Status Code: 200
2010-10-20 00:19:50,448 [main] INFO agent.SecureAgentCmd openPage.863 - RESPONSE_STATUS header: null
2010-10-20 00:19:50,449 [main] INFO agent.SecureAgentCmd openPage.864 - Response body:<undermined characters which can not be past here>
2010-10-20 00:19:50,449 [main] INFO agent.SecureAgentCmd getOMSSecurePort.809 - Non-numeric response obtained: <undermined characters which can not be past here>
2010-10-20 00:19:50,450 [main] INFO agent.SecureAgentCmd getOMSSecurePort.811 - OMS Secure Port: -1
2010-10-20 00:19:50,450 [main] ERROR agent.SecureAgentCmd secureAgent.231 - The OMS is not set up for Enterprise Manager Security.
2010-10-20 00:19:50,452 [main] ERROR agent.SecureAgentCmd main.210 - Failed to secure the Agent:
java.lang.Exception: The OMS is not set up for Enterprise Manager Security.
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.secureAgent(SecureAgentCmd.java:232)
at oracle.sysman.emctl.secure.agent.SecureAgentCmd.main(SecureAgentCmd.java:203)
[20-10-2010 00:19:50] DEBUG ::1
[20-10-2010 00:19:50] USERINFO ::Securing agent... Failed.


-  But, the OMS has been secured correctly and the following commands confirm the same:

emctl secure status oms =====> (for OMS versions < 10.2.0.4)
emctl status oms -secure =====> (for 10.2.0.4 and 10.2.0.5 OMS)
emctl status oms -details  =====> (for 11.1 OMS)
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 : 4900
OMS is not configured with SLB or virtual hostname
Agent Upload is unlocked.
OMS Console is unlocked.
Active CA ID: 1

- The Agent is able to upload fine to the OMS in the unsecure (http) mode.

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