So, I need to extract an agent RPM... and it fails!
Yes, I already made /usr/lib/oracle and installed the rpmbuilder.
The only thing I can see in the logs so far, is in emom.log and it's not very helpful, just a NULL POINTER error.
Here is what I ran.
$ /u01/oem/middleware/bin/emcli get_agentimage_rpm -destination=/tmp -platform="Linux x86" -version=13.1.0.0.0
Platform:Linux x86
Destination:/tmp
Exalogic:false
Checking for disk space requirements...
=== Partition Detail ===
Space free : 15 GB
Space required : 1 GB
RPM Creation in progress ...
Check the logs at /u01/oem/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_rpm_2016-03-16_13-07-25-PM.log
This operation may take few minutes, please wait ...
Agent image to rpm conversion failed
$ more /u01/oem/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_rpm_2016-03-16_13-07-25-PM.log
Platform:Linux x86
Version:13.1.0.0.0
Destination:/tmp
Exalogic:false
Getting Agent Image ...
Getting Platforms list ...
Platform Short Name:linux
Platform ID:46
Path:null
Internal Error: The EM CLI system has encountered an internal error. Details have been added to the OMS log files.
$ tail -14 emoms.log
2016-03-16 13:07:27,852 [emcli-work-manager:emcli-request] ERROR emCLI.CLIPageHandler executeCommand.2187 -
java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at oracle.sysman.install.emcli.GetImageRpmVerb.execute(GetImageRpmVerb.java:159)
at oracle.sysman.emSDK.emCLI.CLIPageHandler.executeCommand(CLIPageHandler.java:2152)
at oracle.sysman.emSDK.emCLI.CLIPageHandler.access$2000(CLIPageHandler.java:168)
at oracle.sysman.emSDK.emCLI.CLIPageHandler$CLIExecutor.executeRequest(CLIPageHandler.java:1461)
at oracle.sysman.emSDK.emCLI.CLIPageHandler$CLIExecutor.doWork(CLIPageHandler.java:1438)
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:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Any help is greatly appreciated