02-13-2010 07:27 AM
Solved! Go to Solution.
02-13-2010 09:10 AM
ALARM_TRESHOLD=84000 RUNTIME=0 bpdbjobs -most_columns | awk -F "," ' $3 ~ /^1$/ { print } ' | awk -F "," ' $2 ~ /^0$/ { print } ' | awk -F "," '{ print $1, $3, $6, $7, $10 }' | while read PID STATE SCHEDULE CLIENT RUNTIME do if [ RUNTIME -gt ALARM_TRESHOLD ] then echo "Job ${PID} ${CLIENT} ${SCHEDULE} runtime is ${RUNTIME}. It's exceeded runtime treshold of ${ALARM_TRESHOLD} " fi doneIt is just a question of finding the collumn in bpdbjobs which contain the write speed and compare it with your treshold. I hope you can use that.
02-13-2010 09:10 AM
ALARM_TRESHOLD=84000 RUNTIME=0 bpdbjobs -most_columns | awk -F "," ' $3 ~ /^1$/ { print } ' | awk -F "," ' $2 ~ /^0$/ { print } ' | awk -F "," '{ print $1, $3, $6, $7, $10 }' | while read PID STATE SCHEDULE CLIENT RUNTIME do if [ RUNTIME -gt ALARM_TRESHOLD ] then echo "Job ${PID} ${CLIENT} ${SCHEDULE} runtime is ${RUNTIME}. It's exceeded runtime treshold of ${ALARM_TRESHOLD} " fi doneIt is just a question of finding the collumn in bpdbjobs which contain the write speed and compare it with your treshold. I hope you can use that.
02-14-2010 09:21 AM
11-06-2018 03:03 PM