Forum Stats

  • 3,750,404 Users
  • 2,250,174 Discussions
  • 7,866,968 Comments

Discussions

Unable to use OMS Agent of version 12.1.0.5.0 shipped with Enterprise Manager 13.5

Victor.Khalturin
Victor.Khalturin Member Posts: 15 Blue Ribbon
edited Aug 5, 2021 10:22AM in Enterprise Manager

I've recently installed the new release of OEM 13.5 and now I'm trying to use an OMS agent 12.1.0.5.0 for monitoring some old hosts with RHEL 5.* operating system.

An OMS Agent 12.1.0.5.0 was successfully uploaded into an OMS through the patch p32387681_112000_Generic.zip. There were no errors during an upload. For instance

##Performing the patch upload 
[email protected]|11:01|~:<OMS> emcli import_update -omslocal -file=/oracle/bins/patches/p32387681_112000_Generic.zip

Processing update: Agent Software - Agent Software (12.1.0.5.0) for Linux x86-64
Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.

## Self Update console 
... some steps here ...

## Get supported platforms
[email protected]|11:02|~:<OMS> emcli get_supported_platforms
-----------------------------------------------
Version = 13.5.0.0.0
 Platform = Linux x86-64
-----------------------------------------------
Version = 12.1.0.5.0
 Platform = Linux x86-64 
-----------------------------------------------

Platforms list displayed successfully.

The problem with the agent 12.1.0.5.0 in OEM 13.5 is when I export an agent image the one of the requested files is missing. For instance

##Exporing agent image 
[email protected]|11:03|~:<OMS> emcli get_agentimage -destination=$PATCH_HOME/agent121505 -platform="Linux x86-64" -version=12.1.0.5.0

 === Partition Detail ===
Space free : 171 GB
Space required : 1 GB
Check the logs at /oracle/oem13500/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2021-08-05_11-03-13-AM.log
Downloading /oracle/bins/patches/agent121505/12.1.0.5.0_AgentCore_226.zip
File saved as /oracle/bins/patches/agent121505/12.1.0.5.0_AgentCore_226.zip
Downloading /oracle/bins/patches/agent121505/12.1.0.5.0_PluginsOneoffs_226.zip
File saved as /oracle/bins/patches/agent121505/12.1.0.5.0_PluginsOneoffs_226.zip
Downloading /oracle/bins/patches/agent121505/unzip
File saved as /oracle/bins/patches/agent121505/unzip
Agent Image Download completed successfully.

Despite the emli get_agentimage command completed successfully the missing file error is thrown in the emoms.log file

[[email protected] ~]# tail -30f /oracle/oem13500/gc_inst/em/EMGC_OMS1/sysman/log/emoms.log

2021-08-05 11:03:24,775 [emcli-work-manager:emcli-request] ERROR emCLI.CLIPageHandler executeCommand.2192 - /oracle/oem13500/middleware/install/agentImage/12.1.0.5.0_PluginsOneoffs_226.zip (No such file or directory)
java.io.FileNotFoundException: /oracle/oem13500/middleware/install/agentImage/12.1.0.5.0_PluginsOneoffs_226.zip (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at oracle.sysman.install.emcli.GetImageVerb.getOneFileStream(GetImageVerb.java:362)
    at oracle.sysman.emSDK.emCLI.CLIPageHandler.executeCommand(CLIPageHandler.java:2134)
    at oracle.sysman.emSDK.emCLI.CLIPageHandler.access$2000(CLIPageHandler.java:170)
    at oracle.sysman.emSDK.emCLI.CLIPageHandler$CLIExecutor.executeRequest(CLIPageHandler.java:1466)
    at oracle.sysman.emSDK.emCLI.CLIPageHandler$CLIExecutor.doWork(CLIPageHandler.java:1443)
    at oracle.sysman.core.common.workmanager.Work.call(Work.java:274)
    at oracle.sysman.core.common.workmanager.Work.call(Work.java:50)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

Here the file 12.1.0.5.0_PluginsOneoffs_226.zip is missing on the OMS host.

This will be the reason for the 12.1.0.5.0 agent installation fails on a target host while installing the exported agent image there

[[email protected]]$ ./agentDeploy.sh AGENT_BASE_DIR=/agent12c RESPONSE_FILE=/stage/agent.rsp ORACLE_HOSTNAME=RHEL5.local

Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /agent12c/core/12.1.0.5.0/jdk/bin/java -classpath /agent12c/core/12.1.0.5.0/jlib/agentInstaller.jar:/agent12c/core/12.1.0.5.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /agent12c/core/12.1.0.5.0 /stage /agent12c AGENT_BASE_DIR=/agent12c RESPONSE_FILE=/stage/agent.rsp ORACLE_HOSTNAME=RHEL5.local -prereq

Validating oms host & port with url: http://oms-server:4903/empbs/genwallet
Validating oms host & port with url: https://oms-server:4903/empbs/genwallet
Return status:3-oms https port is passed
Unzipping the agentcoreimage.zip to /agent12c ....
12.1.0.5.0_PluginsOneoffs_226.zip
Executing command : /stage/unzip -o /stage/12.1.0.5.0_PluginsOneoffs_226.zip -d /agent12c
 End-of-central-directory signature not found. Either this file is not
 a zipfile, or it constitutes one disk of a multi-part archive. In the
 latter case the central directory and zipfile comment will be found on
 the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /stage/12.1.0.5.0_PluginsOneoffs_226.zip or
    /stage/12.1.0.5.0_PluginsOneoffs_226.zip.zip, and cannot find /stage/12.1.0.5.0_PluginsOneoffs_226.zip.ZIP, period.
Failed to unzip /stage/12.1.0.5.0_PluginsOneoffs_226.zip to /agent12c !

As the file 12.1.0.5.0_PluginsOneoffs_226.zip is missing on the OMS host the emli get_agentimage created corrupted version of that file in the agent image

##Content of the agent image
[[email protected] stage]$ ll
total 489332
-rw-r--r-- 1 oracle oinstall 250228230 Aug  4 18:58 12.1.0.5.0_AgentCore_226.zip
-rw-rw-r-- 1 oracle oinstall 250147135 Jun 16  2015 agentcoreimage.zip
drwxr-xr-x 2 oracle oinstall      4096 Aug  4 19:10 agentDeploy
-rwxrwxr-x 1 oracle oinstall     29124 Jun 16  2015 agentDeploy.sh
-rw-rw-r-- 1 oracle oinstall       178 Jun 16  2015 agentimage.properties
-rw-r--r-- 1 oracle oinstall       281 Aug  4 18:59 agent.rsp
-rwxr-xr-x 1 oracle oinstall    145976 Jun 16  2015 unzip


##Plugin archive is currupted
[[email protected] stage]$ du -hs 12.1.0.5.0_PluginsOneoffs_226.zip
4.0K    12.1.0.5.0_PluginsOneoffs_226.zip

[[email protected] stage]$ strings -a 12.1.0.5.0_PluginsOneoffs_226.zip
sInternal Error: The EM CLI system has encountered an internal error. Details have been added to the OMS log files.



Does anyone has any idea how to fix the issue with OMS agent 12.1.0.5.0 in OEM 13.5?

Answers

  • EricvdS
    EricvdS Member Posts: 972 Bronze Trophy

    Hi Victor,

    If you solve this issue and overcome the fact that RH 5 does default not support tsl 1.1 or 1.2, EM 13.5 only support agent versions: 13.5.0.0.0, 13.4.0.0.0, and 13.3.0.0.0

    Eric

  • Victor.Khalturin
    Victor.Khalturin Member Posts: 15 Blue Ribbon
    edited Aug 9, 2021 8:41AM

    Hi EricvdS,

    Thank you for answering my question.

    I have no idea how to fix the issue at the moment but it looks like a bug with the agent 12.1.0.5.0. 

    The agent 12.1.0.5.0 is not shipped with the OEM 13c by default. This functionality is provided through Self Update feature of the Enterprise Manager by installing 2 additional patches into an OMS - p9348486_112000_Generic.zip and p32387681_112000_Generic.zip 

    The first patch is the catalog update and the second one is the 12.1.0.5.0 agent image.

    Previously I used the patch p21207108_112000_Generic.zip to add the 12.1.0.5.0 agent to OEM 13c and everything worked fine. But now Oracle has closed the possibility to download it and issued another patch  instead of it - p32387681_112000_Generic.zip.

    So based on my previous experience with patch p21207108_112000_Generic.zip I expected that it should work with the p32387681_112000_Generic.zip patch as well.