Initial commit
This commit is contained in:
commit
c82eff6355
7 changed files with 1623 additions and 0 deletions
13
log_summary.sh
Normal file
13
log_summary.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# name=summary.`date --rfc-3339=seconds`
|
||||||
|
|
||||||
|
# echo Subject: Dell Cluster log summary
|
||||||
|
# echo
|
||||||
|
|
||||||
|
for lfile in `python /home/ignis/log_notification_mailer/query_slurm.py`
|
||||||
|
do
|
||||||
|
echo $lfile
|
||||||
|
echo --------------------------------------------------------------------------------
|
||||||
|
tail -n 10000 $lfile | grep "Time\|(T)\|(p)\|(Phi)" | tail -n 10
|
||||||
|
echo ================================================================================
|
||||||
|
echo
|
||||||
|
done
|
||||||
20
log_summary_from_listfile.sh
Normal file
20
log_summary_from_listfile.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# name=summary.`date --rfc-3339=seconds`
|
||||||
|
|
||||||
|
# echo Subject: Dell Cluster log summary
|
||||||
|
# echo
|
||||||
|
|
||||||
|
for lfile in `cat /home/ignis/log_notification_mailer/sample.list`
|
||||||
|
do
|
||||||
|
echo $lfile
|
||||||
|
tail -n 10000 $lfile/job.*.out | grep "Time\|(T)\|(p)\|(Phi)" | tail -n 10
|
||||||
|
echo ================================================================================
|
||||||
|
tail -n 5 $lfile/job.*.out
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
|
||||||
|
for lfile in `cat /home/ignis/log_notification_mailer/sample.list`
|
||||||
|
do
|
||||||
|
uuencode $lfile/OHsurface.png $(basename $lfile)-OHsurface.png
|
||||||
|
uuencode $lfile/Tsurface.png $(basename $lfile)-Tsurface.png
|
||||||
|
uuencode $lfile/Tplot.png $(basename $lfile)-Tplot.png
|
||||||
|
done
|
||||||
1537
pv-notify.py
Normal file
1537
pv-notify.py
Normal file
File diff suppressed because it is too large
Load diff
11
pv_cases.sh
Executable file
11
pv_cases.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
name=summary.`date --rfc-3339=seconds`
|
||||||
|
|
||||||
|
source $HOME/.bashrc
|
||||||
|
source ~/OpenFOAM/OpenFOAM-2.4.x/etc/bashrc WM_NCOMPPROCS=32; source ~/OpenFOAM/cantera/bin/setup_cantera
|
||||||
|
|
||||||
|
for lfile in `cat /home/ignis/log_notification_mailer/sample.list`
|
||||||
|
do
|
||||||
|
/home/ignis/ospv/bin/pvpython /home/ignis/log_notification_mailer/pv-notify.py $lfile
|
||||||
|
done
|
||||||
15
query_slurm.py
Normal file
15
query_slurm.py
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
import subprocess as sp
|
||||||
|
|
||||||
|
USER = 'ignis'
|
||||||
|
|
||||||
|
idlist = sp.check_output('squeue -h -u {} -t running -o "%i"'.format(USER), shell=True).split()
|
||||||
|
|
||||||
|
foamBanner='F ield | OpenFOAM: The Open Source CFD Toolbox'
|
||||||
|
|
||||||
|
for sid in idlist:
|
||||||
|
a = sp.check_output('scontrol show job {}'.format(sid), shell=True).split()
|
||||||
|
d = {aa.split("=")[0]: aa.split("=")[-1] for aa in a}
|
||||||
|
|
||||||
|
with open(d["StdOut"]) as logfile:
|
||||||
|
if logfile.read().find(foamBanner) >= 0:
|
||||||
|
print d["StdOut"]
|
||||||
15
query_slurm_check.py
Normal file
15
query_slurm_check.py
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
import subprocess as sp
|
||||||
|
|
||||||
|
USER = 'ignis'
|
||||||
|
|
||||||
|
idlist = sp.check_output('squeue -h -u {} -o "%i"'.format(USER), shell=True).split()
|
||||||
|
|
||||||
|
foamBanner='F ield | OpenFOAM: The Open Source CFD Toolbox'
|
||||||
|
|
||||||
|
for sid in idlist:
|
||||||
|
a = sp.check_output('scontrol show job {}'.format(sid), shell=True).split()
|
||||||
|
d = {aa.split("=")[0]: aa.split("=")[-1] for aa in a}
|
||||||
|
|
||||||
|
with open(d["StdOut"]) as logfile:
|
||||||
|
if logfile.read().find(foamBanner) >= 0:
|
||||||
|
print d["StdOut"]
|
||||||
12
reconstruct_cases.sh
Executable file
12
reconstruct_cases.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
name=summary.`date --rfc-3339=seconds`
|
||||||
|
|
||||||
|
source $HOME/.bashrc
|
||||||
|
source ~/OpenFOAM/OpenFOAM-2.4.x/etc/bashrc WM_NCOMPPROCS=32; source ~/OpenFOAM/cantera/bin/setup_cantera
|
||||||
|
|
||||||
|
for lfile in `cat /home/ignis/log_notification_mailer/sample.list`
|
||||||
|
do
|
||||||
|
find $lfile/processor* -name h | xargs rm
|
||||||
|
reconstructPar -latestTime -case $lfile
|
||||||
|
done
|
||||||
Reference in a new issue