Ok, this sacct command lists all jobs that were running on a single day:

DAY=2020-03-09
sacct -a -S${DAY}T00:00:00 -E${DAY}T23:59:59 -X -o user --state=running -n

Total number of jobs active that day:

 | wc -l

Total number of unique users:

 | sort -u | wc -l

/Peter

On Thu, 2 Apr 2020 18:01:15 +0530
Sudeep Narayan Banerjee <snbaner...@iitgn.ac.in> wrote:

> Dear Peter: I am trying with *sacct* and multiple flags.. but am not 
> getting the desired output as per the query...
> 
> Thanks & Regards,
> Sudeep Narayan Banerjee
> 
> On 02/04/20 5:23 pm, Peter Kjellström wrote:
> > On Thu, 2 Apr 2020 16:57:46 +0530
> > Sudeep Narayan Banerjee <snbaner...@iitgn.ac.in> wrote:
> >  
> >> any help in getting the right flags ?  
> > You may need to clarify that question a bit...
> >
> > How many users ran jobs on each day? (weekly, monthly average?)
> >
> > How many jobs/per day did each user run? (weekly, monthly average?)
> >
> > And what counts as job activity for a day? Started a job that day?
> > completed a job? Had at least one job running?
> >
> > /Peter  


Reply via email to