forked from jeffersonscientific/HPC_analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_usage_sherlock_myparts.sh
27 lines (24 loc) · 1.85 KB
/
get_usage_sherlock_myparts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#SBATCH -n 1
#SBATCH -o sacct_sherlock_out_myparts.out
#SBATCH -e sacct_sherlock_out_myparts.err
#SBATCH -p normal
#SBATCH --mem=8GB
#
# can we pass "\t" correctly? maybe for now, just use the HPC standard "|" as a delimiter...
STARTTIME="2019-11-01"
ENDTIME="2020-11-30"
FORMAT="User,Group,GID,Jobname,JobID,JobIDRaw,partition,state,time,ncpus,nnodes,Submit,Eligible,start,end,elapsed,SystemCPU,UserCPU,TotalCPU,NTasks,CPUTimeRaw,Suspended"
#FORMAT="ALL"
PARTITION="hns,serc,oneillm,owners,dev,gpu,bigmem"
#
#srun sacct -a -p --delimiter="|" --${STARTTIME} --format=User,Group,GID,JobID,Jobname,partition,state,Submit,time,Eligible,start,end,elapsed,MaxRss,MaxVMSize,nnodes,ncpus,SystemCPU,UserCPU,TotalCPU,Suspended
srun sacct --allusers --partition=$PARTITION -p --delimiter="|" --starttime=2019-08-16 --endtime=2019-09-15 --format=${FORMAT}
srun sacct --allusers --partition=$PARTITION --noheader -p --delimiter="|" --starttime=2019-09-16 --endtime=2019-10-15 --format=${FORMAT}
srun sacct --allusers --partition=$PARTITION --noheader -p --delimiter="|" --starttime=2019-10-16 --endtime=2019-11-15 --format=${FORMAT}
srun sacct --allusers --partition=$PARTITION --noheader -p --delimiter="|" --starttime=2019-11-16 --endtime=2019-12-15 --format=${FORMAT}
srun sacct --allusers --partition=$PARTITION --noheader -p --delimiter="|" --starttime=2019-12-16 --endtime=2020-01-15 --format=${FORMAT}
srun sacct --allusers --partition=$PARTITION --noheader -p --delimiter="|" --starttime=2020-01-16 --endtime=2020-02-15 --format=${FORMAT}
srun sacct --allusers --partition=$PARTITION --noheader -p --delimiter="|" --starttime=2020-02-16 --endtime=2020-03-15 --format=${FORMAT}
#srun sacct --allusers --partition=hns -p --delimiter="|" --starttime=${STARTTIME} --endtime=${ENDTIME} --format=${FORMAT}
# sacct --allusers --starttime=2020-02-01 --endtime=2020-02-29 --partition=hns