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
|
|
|