Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesletts committed Oct 15, 2014
1 parent 1ccb41e commit 7c02326
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions multi-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ condor_status -pool $COLLECTOR \
-format '%s ' State -format '%s\n' Activity | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Partitionable glidein Cpus\": {"
Expand All @@ -38,7 +38,7 @@ condor_status -pool $COLLECTOR \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Partitionable retiring glideins\": {"
Expand All @@ -50,7 +50,7 @@ condor_status -pool $COLLECTOR \
-format '%s ' State -format '%s\n' Activity | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Partitionable retiring glidein Cpus\": {"
Expand All @@ -63,7 +63,7 @@ condor_status -pool $COLLECTOR \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Dynamic glideins\": {"
Expand All @@ -74,7 +74,7 @@ condor_status -pool $COLLECTOR \
-format '%s ' State -format '%s\n' Activity | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Dynamic glidein Cpus\": {"
Expand All @@ -86,7 +86,7 @@ condor_status -pool $COLLECTOR \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Dynamic retiring glideins\": {"
Expand All @@ -98,7 +98,7 @@ condor_status -pool $COLLECTOR \
-format '%s ' State -format '%s\n' Activity | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Dynamic retiring glidein Cpus\": {"
Expand All @@ -111,7 +111,7 @@ condor_status -pool $COLLECTOR \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static glideins\": {"
Expand All @@ -122,7 +122,7 @@ condor_status -pool $COLLECTOR \
-format '%s ' State -format '%s\n' Activity | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static glidein Cpus\": {"
Expand All @@ -134,7 +134,7 @@ condor_status -pool $COLLECTOR \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static retiring glideins\": {"
Expand All @@ -146,7 +146,7 @@ condor_status -pool $COLLECTOR \
-format '%s ' State -format '%s\n' Activity | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static retiring glidein Cpus\": {"
Expand All @@ -159,7 +159,7 @@ condor_status -pool $COLLECTOR \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static multi-core glideins\": {"
Expand All @@ -171,7 +171,7 @@ condor_status -pool $COLLECTOR \
grep ^slot[0-9]*\@ | awk '{print $2 " " $3 }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static multi-core glidein Cpus\": {"
Expand All @@ -184,7 +184,7 @@ grep ^slot[0-9]*\@ | awk '{print $2 " " $3 " " $4 }' | \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static multi-core retiring glideins\": {"
Expand All @@ -197,7 +197,7 @@ condor_status -pool $COLLECTOR \
grep ^slot[0-9]*\@ | awk '{print $2 " " $3 }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Static multi-core retiring glidein Cpus\": {"
Expand All @@ -211,7 +211,7 @@ grep ^slot[0-9]*\@ | awk '{print $2 " " $3 " " $4 }' | \
awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort | uniq -c | \
awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Total glideins\": {"
Expand All @@ -222,7 +222,7 @@ condor_status -pool $COLLECTOR \
| sort |uniq -c \
| awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " ]"
echo " }"
echo " },"


echo " \"Total Cpus\": {"
Expand All @@ -232,6 +232,7 @@ condor_status -pool $COLLECTOR \
-format '%s ' Cpus -format '%s ' State -format '%s\n' Activity \
| awk ' { for (i=$1; i>0; i--) { print $2 " " $3 } }' | sort |uniq -c \
| awk '{printf(" [\"%s\",\"%s\",%i],\n",$2,$3,$1)}'
echo " [null,null,0]"
echo " ]"
echo " }"

Expand Down

0 comments on commit 7c02326

Please sign in to comment.