Home » RDBMS Server » Enterprise Manager » emcli command to find execution_id (OEM 12.1.0.3, Oracle Linux 5.9, x86_64)
emcli command to find execution_id [message #625168] Thu, 02 October 2014 04:36
Big_Jeffrey
Messages: 1
Registered: October 2014
Junior Member
Hi.

Using a KSH script I'm trying to grab the OEM log output from a deployment procedure and write it to a logfile using the following command:

emcli get_job_execution_detail -execution=${EXEC_ID} -xml -showOutput >> /tmp/logfile

This cmd works but I have to manually look up the execution_id in the OEM GUI. I would like to automate this in a script, so I need a way of finding this execution_id value via emcli.

I thought one of the values outputted from the 'emcli get_jobs' cmd would work but it doesn't. Anybody know which emcli cmd will give me this executiohn_id info? There should be simple straight forward way without looking in the mgmt_job_execution table in OEM.

Many thanks,
J
Previous Topic: Entreprise manager : How to have the Online - Offline option for backup
Next Topic: Performance Manager on EM not showing full statement
Goto Forum:
  


Current Time: Tue Nov 26 05:08:56 CST 2024