Forum Stats

  • 3,767,945 Users
  • 2,252,732 Discussions
  • 7,874,387 Comments

Discussions

EM 12C issue with agent

User_7ACVM
User_7ACVM Member Posts: 12 Blue Ribbon

Hello,

could you help me please ? I looking for since few weeks.

I have installed a new agent oracle 11g (Windows 2016 server) with EM1 2C OMS server is W2K12 R2.

The both servers are the same location (same VLAN) and windows firewall : port 1159 and 3872 are allowed on the both servers (ingoing / outgoing trafic)

In OMS console, I see the new host and new agent : "unable to connect to http server at https://agent:3872/emd/main/. [peer not authenticated].

From agent :

Oracle Enterprise Manager Cloud Control 12c Release 5

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

---------------------------------------------------------------

Agent Version     : 12.1.0.5.0

OMS Version      : 12.1.0.5.0

Protocol Version    : 12.1.0.1.0

Agent Home       : I:/Apps/Oracle/Agent/Agent12c/product

Agent Log Directory  : I:/Apps/Oracle/Agent/Agent12c/product\sysman\log

Agent Binaries     : I:\Apps\Oracle\Agent\Agent12c\core\12.1.0.5.0

Agent Process ID    : 7760

Parent Process ID   : 4272

Agent URL              : https://agent:3872/emd/main/

Local Agent URL in NAT : https://agent:3872/emd/main/

Repository URL         : https://oms_server.com:1159/empbs/upload

Started at       : 2021-02-22 14:12:44

Started by user    : AGENT$

Operating System    : Windows version 6.2 (amd64)

Last Reload      : (none)

Last successful upload            : 2021-02-22 14:50:10

Last attempted upload            : 2021-02-22 14:50:10

Total Megabytes of XML files uploaded so far : 0

Number of XML files pending upload      : 0

Size of XML files pending upload(MB)     : 0

Available disk space on upload filesystem  : 63,32 %

Collection Status              : Collections enabled

Heartbeat Status               : Ok

Last attempted heartbeat to OMS       : 2021-02-22 15:24:52

Last successful heartbeat to OMS       : 2021-02-22 15:24:52

Next scheduled heartbeat to OMS       : 2021-02-22 15:25:52


---------------------------------------------------------------

Agent is Running and Ready


Agent is Running and Ready


I:\Apps\Oracle\Agent\Agent12c\product\bin>emctl pingOMS

Oracle Enterprise Manager Cloud Control 12c Release 5

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

---------------------------------------------------------------

EMD pingOMS completed successfully


I stopped and restart the agent .and type emctl secure agent (retype the register password)...same problem.

I:\Apps\Oracle\Agent\Agent12c\product\bin>emctl config agent listtargets

Oracle Enterprise Manager Cloud Control 12c Release 5

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

I:\Apps\Oracle\Agent\Agent12c\product\bin>


targets.xml is almost empty (targets agent_token only).


In OMS log :

ExecuteThread: '15' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN region.PerformanceMetricChartModel logp.251 - Unable to obtain definition for the selected metrics.

Target Names: [AGENT, AGENT]  Target Types: [host, host]  Metric Names: [NetworkSummary, NetworkSummary]  Metric Columns: [totalNetworkReadRate, totalNetworkWriteRate]  Key Values: [null, null] oracle.sysman.emSDK.app.exception.EMSystemException


Thank you in advance for your help.


JJ

«1

Answers

  • EricvdS
    EricvdS Member Posts: 973 Bronze Trophy

    Hi,

    If targets.xml is empty run from the agent home\bin:

    emctl config agent addinternaltargets

    and

    emctl upload agent

    may solve your problem.

    Eric

  • User_7ACVM
    User_7ACVM Member Posts: 12 Blue Ribbon
    edited Feb 23, 2021 12:16PM

    Hello Eric,

    thank you.

    I:\Apps\Oracle\Agent\Agent12c\product\bin>emctl config agent addinternaltargets

    Oracle Enterprise Manager Cloud Control 12c Release 5

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


    I:\Apps\Oracle\Agent\Agent12c\product\bin>emctl config agent addinternaltargets

    Oracle Enterprise Manager Cloud Control 12c Release 5

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


    I:\Apps\Oracle\Agent\Agent12c\product\bin>

    I:\Apps\Oracle\Agent\Agent12c\product\bin>emctl upload agent

    Oracle Enterprise Manager Cloud Control 12c Release 5

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

    ---------------------------------------------------------------

    EMD upload completed successfully


    emctl status agent....(extract)

    ...

    Operating System    : Windows version 6.2 (amd64)

    Last Reload      : (none)

    Last successful upload            : 2021-02-23 13:10:17

    Last attempted upload            : 2021-02-23 13:10:17

    Total Megabytes of XML files uploaded so far : 0

    Number of XML files pending upload      : 0

    Size of XML files pending upload(MB)     : 0

    Available disk space on upload filesystem  : 63,01 %

    Collection Status              : Collections enabled

    Heartbeat Status               : Ok

    Last attempted heartbeat to OMS       : 2021-02-23 13:13:07

    Last successful heartbeat to OMS       : 2021-02-23 13:13:07

    Next scheduled heartbeat to OMS       : 2021-02-23 13:14:07


    ---------------------------------------------------------------

    Agent is Running and Ready


    The result is the same. :(

    I have clearstate (few days ago) with remove state and remove data into the directorys...but the issue wasn't solved.

  • EricvdS
    EricvdS Member Posts: 973 Bronze Trophy

    Looking in MOS most times the solution is to de-install the agent, check if the host and agent still exist in OEM, If so drop them (Agent decommision). And install again.


    Eric

  • User_7ACVM
    User_7ACVM Member Posts: 12 Blue Ribbon

    I uninstalled many times and reinstall agent without success.

    I obtain the same error.

    I checked with wireshark the trafic from OMS server and the agent. I saw "hello from server" and "hello from client". Trafic seems good (compare with another agent which is ok).

    I don't understand why it doesn't works with this agent.

  • EricvdS
    EricvdS Member Posts: 973 Bronze Trophy

    Found it (I hope). In my old (12c) documentation I found the same situation. In case of a almost empty targets.xml or it too many targets:

    On the OMS-server:

    emcli login -username=sysman ( or another super admin name)

    emcli sync

    emcli resyncAgent -agent="agent server fqdn:3872" If the agent is not blocked you may need to add -force, but I think this is not needed in 12c.

    emctl status agent will say:

    Collection Status                            : Collections enabled

    Heartbeat Status                            : Agent is blocked

    Blocked Reason   : Agent is blocked for resync job

    But after a few minutes all should be ok.


    Btw emctl status agent gives you the fqdn agent server name and not just agent I hope.

    Agent URL              : https://agent:3872/emd/main/


    Eric

  • User_7ACVM
    User_7ACVM Member Posts: 12 Blue Ribbon

    Hello Eric,

    thank you very much for your help. I appreciate.

    You're alright, it's without FQDN. I can try to reinstall (with silent deployment installation) with FQDN.

    For OMS server and emcli, I obtain the following error (not configured maybe).

    I:\Apps\Oracle\Middleware\oms\BIN>emcli login -username=sysman

    Exception in thread "main" java.lang.ExceptionInInitializerError

        at oracle.sysman.emSDK.emCLI.CLIController.init(CLIController.java:115)

        at oracle.sysman.emSDK.emCLI.CLIController.<init>(CLIController.java:110

    )

        at oracle.sysman.emSDK.emCLI.CLIController.<clinit>(CLIController.java:7

    5)

    Caused by: java.lang.IllegalStateException: java.io.FileNotFoundException: I:\Ap

    ps\Oracle\Middleware\oms\BIN\..\sysman\emcli\.home\.emcli.installations (Access

    is denied)

        at oracle.sysman.emCLI.EMCLIStateManager.init(EMCLIStateManager.java:352

    )

        at oracle.sysman.emCLI.EMCLIStateManager.<clinit>(EMCLIStateManager.java

    :76)

        ... 3 more

    Caused by: java.io.FileNotFoundException: I:\Apps\Oracle\Middleware\oms\BIN\..\s

    ysman\emcli\.home\.emcli.installations (Access is denied)

        at java.io.FileInputStream.open(Native Method)

        at java.io.FileInputStream.<init>(Unknown Source)

        at oracle.sysman.emCLI.CLIClientConfigurationManager.getCLIInstallObject

    (CLIClientConfigurationManager.java:327)

        at oracle.sysman.emCLI.CLIClientConfigurationManager.getLocalDir(CLIClie

    ntConfigurationManager.java:924)

        at oracle.sysman.emCLI.CLIClientConfigurationManager.getUserConfiguratio

    nManager(CLIClientConfigurationManager.java:812)

        at oracle.sysman.emCLI.EMCLIStateManager.init(EMCLIStateManager.java:348

    )

        ... 4 more

  • User_7ACVM
    User_7ACVM Member Posts: 12 Blue Ribbon

    Agent URL              : https://agent.fqdn.com:3872/emd/main/

    Local Agent URL in NAT : https://agent.fqdn.com:3872/emd/main/

    Repository URL         : https://omsserver.fqdn.com:1159/empbs/upload

    Started at       : 2021-02-24 11:56:47

    Started by user    : AGENT$

    Operating System    : Windows version 6.2 (amd64)

    Last Reload      : (none)

    Last successful upload            : 2021-02-24 11:57:13

    Last attempted upload            : 2021-02-24 11:57:13

    Total Megabytes of XML files uploaded so far : 0

    Number of XML files pending upload      : 0

    Size of XML files pending upload(MB)     : 0

    Available disk space on upload filesystem  : 62,67 %

    Collection Status              : Collections enabled

    Heartbeat Status               : Ok

    Last attempted heartbeat to OMS       : 2021-02-24 12:21:55

    Last successful heartbeat to OMS       : 2021-02-24 12:21:55

    Next scheduled heartbeat to OMS       : 2021-02-24 12:22:55


    ---------------------------------------------------------------

    Agent is Running and Ready


    Issue not solved with the FQDN for the agent.

  • EricvdS
    EricvdS Member Posts: 973 Bronze Trophy

    Regarding the emcli command: It could be you have to use an other user: https://community.oracle.com/tech/apps-infra/discussion/3986573/emcli-configuration has the same Java errors.

    emcli setup may give you more information. I don't have an environment to check at the moment.


    Eric

  • User_7ACVM
    User_7ACVM Member Posts: 12 Blue Ribbon

    Thank you Eric.

    I triyied to install emcli

    mkdir c:\emcli

    set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_211

    set PATH=%JAVA_HOME%\bin;%PATH%

    java -jar c:\mypath\emcliadvancedkit.jar client -install_dir=c:\emcli

    cd c:\emcli

    set EMCLI_STATE_DIR=C:\emcli

    emcli setup -url=https://oms.server.com:7799/em -username=sysman -trustall -dir=C:\emcli

    password

    Error: Connection to the current OMS could not be established. Check the log files for further details.

    Log file location is : C:\emcli\.emcli\.emcli.log

    I have the following error :

    SEVERE: HttpConnectionException

    oracle.sysman.emCLI.omsbrowser.HttpConnectionException:

    javax.net.ssl.SSLException: Received fatal alert: close_notify


    I applied the following patch (The 12.1.0.5 OMS uses version 11.1.1.7.0 of FMW)


    stop oms, applied the patch, restart (and reboot OMS server)

    I obtain the following error still

    SEVERE: HttpConnectionException 

    oracle.sysman.emCLI.omsbrowser.HttpConnectionException: 

    at oracle.sysman.emCLI.omsbrowser.OMSBrowser.submitCommand(OMSBrowser.java:1319)

    at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageInternal(OMSBrowser.java:748)

    at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPage(OMSBrowser.java:666)

    at oracle.sysman.emCLI.verb.LogoutVerb.doLogout(LogoutVerb.java:263)

    at oracle.sysman.emCLI.verb.SetupVerb.execute(SetupVerb.java:810)

    at oracle.sysman.emSDK.emCLI.CLIController.execute(CLIController.java:306)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at oracle.sysman.emCLI.StandAloneLaunchHandler.invoke(StandAloneLaunchHandler.java:363)

    at oracle.sysman.emCLI.StandAloneLaunchHandler.launch(StandAloneLaunchHandler.java:262)

    at oracle.sysman.emSDK.emCLI.CLIController.launch(CLIController.java:194)

    at oracle.sysman.emSDK.emCLI.CLIController.main(CLIController.java:184)

    Caused by: javax.net.ssl.SSLException: Received fatal alert: close_notify

    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)

    at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)

    at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2020)

    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1127)

    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)

    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:750)

    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)

    at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:167)

    at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:3461)

    at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:3373)

    at HTTPClient.HTTPConnection$10.run(HTTPConnection.java:3124)

    at HTTPClient.HTTPConnection$10.run(HTTPConnection.java:3115)

    at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:729)

    at HTTPClient.HTTPConnection.doAction(HTTPConnection.java:5560)

    at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:3115)

    at HTTPClient.HTTPConnection.Post(HTTPConnection.java:1119)

    at HTTPClient.HTTPConnection.Post(HTTPConnection.java:1073)

    at oracle.sysman.emCLI.omsbrowser.OMSBrowser.submitCommand(OMSBrowser.java:1298)

    ... 13 more

  • User_7ACVM
    User_7ACVM Member Posts: 12 Blue Ribbon

    I uninstall java jdk1.8 and install 1.6 (see on forum)..that's works ! (probably TLS issue previously...TLS1.0 using)

    C:\emcli>emcli sync

    Synchronized successfully

    emcli resyncAgent -agent=agent.fqdn.com:3872

    Error : Agent agent.fqdn.com:3872 do not exist

    I can see the list of targets (that's works !)

    with emcli get_targets

    (see for the agent whith issue...error measures collect)