Sean McGrath <[email protected]> writes:

> Hi,
>
> On Thu, Jan 05, 2017 at 02:29:11PM -0800, Prasad, Bhanu wrote:
>
>> Hi,
>> 
>> 
>> Is there a convenient command like `scontrol show job id` to check more info 
>> of jobs that are completed
>
> Not to my knowledge.
>
>> 
>> or any command to check the sbatch command run in that particular job
>
> How we do this is with the slurmctld epilog script:
>
>       EpilogSlurmctld=/etc/slurm/slurm.epilogslurmctld
>
> Which does the following:
>
>       /usr/bin/scontrol show job=$SLURM_JOB_ID > 
> $recordsdir/$SLURM_JOBID.record
>
> The `scontrol show jobid=xxxx` record is saved to the file system for future
> reference if it is needed.

It might be worth using the option '--oneliner' to print out the record
in a single line.  You could then parse it more easily for, say, then
inserting the data into a table in a database.

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email [email protected]

Reply via email to