From 34a7659f3d3dcebb72a1bbf837046af2babb363b Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Mon, 29 Aug 2016 19:16:11 -0400 Subject: [PATCH] * show-cluster-usage.py: A tool to summarize the usage of an SGE cluster at a given snapshot in time. At present the usage is broken down by the user; other categories can be added in the future. --- sge/show-cluster-usage.py | 167 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100755 sge/show-cluster-usage.py diff --git a/sge/show-cluster-usage.py b/sge/show-cluster-usage.py new file mode 100755 index 0000000..29f95a0 --- /dev/null +++ b/sge/show-cluster-usage.py @@ -0,0 +1,167 @@ +#!/usr/bin/env python +# +# Created: 20160829 +# Wirawan Purwanto + +""" +show-usage-current.py +--------------------- + +Shows the instantaneous usage of the cluster per user at current time. +Based on qstat -f output. + +Usage: + +1) Using the current qstat -f data (saving that data to the + `qstat-f--