[slurm-dev] Re: where to find completed job execution command

2017-01-06 Thread Paul Edmon


We do the same thing except with a prolog script which dumps the job 
info to a flat file so we can look up historical jobs.  Sadly the 
slurmdbd does not store this info, so you have to do it yourself.


-Paul Edmon-


On 01/06/2017 04:31 AM, Loris Bennett wrote:

Sean McGrath  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=` 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



[slurm-dev] Re: where to find completed job execution command

2017-01-06 Thread Loris Bennett

Sean McGrath  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=` 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 loris.benn...@fu-berlin.de

[slurm-dev] Re: where to find completed job execution command

2017-01-06 Thread Sean McGrath

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=` record is saved to the file system for future
reference if it is needed.

Hope that helps.

Regards

Sean

> 
> Is this something configurable in slurmdb
> 
> 
> --
> Thanks
> Bhanu Prasad Ganguru

-- 
Sean McGrath M.Sc

Systems Administrator
Trinity Centre for High Performance and Research Computing
Trinity College Dublin

sean.mcgr...@tchpc.tcd.ie

https://www.tcd.ie/
https://www.tchpc.tcd.ie/

+353 (0) 1 896 3725