Retrieve dynamic parameter values of a job
Posted: Sat Feb 13, 2010 2:38 pm
Hi
I am using below command to retrieve the parameter values passed during a job run. I need to collect this information for all jobs in project across multiple servers.
dsjob -logsum <project> <jobname> | grep STARTED | tail -2 | head -1 | tr '\t' '|' | cut -d"|" -f1 | xargs dsjob -logdetail <project> <jobname> | tr '\t' ' ' | grep " = " | tr '^' ' ' >/tmp/outt
Issue is: It gets hanging if the log has too many entries like warnings/errors and does not return.
Is there any way to get the parameter values passed during a job run using dsjob commands.
Thanks
I am using below command to retrieve the parameter values passed during a job run. I need to collect this information for all jobs in project across multiple servers.
dsjob -logsum <project> <jobname> | grep STARTED | tail -2 | head -1 | tr '\t' '|' | cut -d"|" -f1 | xargs dsjob -logdetail <project> <jobname> | tr '\t' ' ' | grep " = " | tr '^' ' ' >/tmp/outt
Issue is: It gets hanging if the log has too many entries like warnings/errors and does not return.
Is there any way to get the parameter values passed during a job run using dsjob commands.
Thanks