From 55fb43f39fd45110cb9215c5bdfb43767ec3939a Mon Sep 17 00:00:00 2001 From: guruevi Date: Thu, 11 Dec 2008 20:49:50 +0000 Subject: [PATCH] 2008-12-11 Evi Vanoost * Previous commit apparently messed up the structure git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1290 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/linux/plugins/README | 0 .../README.txt => linux/plugins/SGE/README} | 0 .../linux/plugins/{ => SGE}/SGEStatus.sh | 0 pandora_agents/mac_osx/plugins/SGE/SGEStatus | 89 ------------------- 4 files changed, 89 deletions(-) delete mode 100644 pandora_agents/linux/plugins/README rename pandora_agents/{mac_osx/plugins/SGE/README.txt => linux/plugins/SGE/README} (100%) rename pandora_agents/linux/plugins/{ => SGE}/SGEStatus.sh (100%) delete mode 100755 pandora_agents/mac_osx/plugins/SGE/SGEStatus diff --git a/pandora_agents/linux/plugins/README b/pandora_agents/linux/plugins/README deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/pandora_agents/mac_osx/plugins/SGE/README.txt b/pandora_agents/linux/plugins/SGE/README similarity index 100% rename from pandora_agents/mac_osx/plugins/SGE/README.txt rename to pandora_agents/linux/plugins/SGE/README diff --git a/pandora_agents/linux/plugins/SGEStatus.sh b/pandora_agents/linux/plugins/SGE/SGEStatus.sh similarity index 100% rename from pandora_agents/linux/plugins/SGEStatus.sh rename to pandora_agents/linux/plugins/SGE/SGEStatus.sh diff --git a/pandora_agents/mac_osx/plugins/SGE/SGEStatus b/pandora_agents/mac_osx/plugins/SGE/SGEStatus deleted file mode 100755 index 9d76a89a13..0000000000 --- a/pandora_agents/mac_osx/plugins/SGE/SGEStatus +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash -############################################################################### -# -# Copyright (c) 2008 Evi Vanoost -# -# SGEStatus: A quick shell script that can be used as a Pandora plugin to -# display the SGE cluster status -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -############################################################################### - - -SGE_BIN="/RCBI/sge/bin/darwin-ppc" - -PENDING=$[`$SGE_BIN/qstat -s p | grep " qw " | wc -l`+0] -RUNNING=$[`$SGE_BIN/qstat -s a | grep " r " | wc -l`+0] -HOSTS=$[`qhost | wc -l`-3] -QUEUES=`qstat -g c | grep -v '\-\-\-' | grep -v "CLUSTER QUEUE" | awk '{print $1}'` -NUMQUEUE=0 - -echo " - Pending Jobs (Cluster) - $PENDING - generic_data - - Running Jobs (Cluster) - $RUNNING - generic_data - - Number of Hosts (Cluster) - $HOSTS - generic_data" - -for queue in $QUEUES -do - NUMQUEUE=$[$NUMQUEUE+1] - # CLUSTER QUEUE CQLOAD USED AVAIL TOTAL aoACDS cdsuE - # 64bit 0.15 0 8 22 0 14 - QINFO=`qstat -g c | grep $queue` - AVGLOAD=`echo $QINFO | awk '{print $2}'` - USEDSLOTS=`echo $QINFO | awk '{print $3}'` - AVAILSLOTS=`echo $QINFO | awk '{print $4}'` - TOTALSLOTS=`echo $QINFO | awk '{print $5}'` - ADMSTATUS=`echo $QINFO | awk '{print $6}'` - ERRSTATUS=`echo $QINFO | awk '{print $7}'` - echo " - Available Slots (Q: $queue) - $AVAILSLOTS - generic_data - - - Used Slots (Q: $queue) - $USEDSLOTS - generic_data - - - Total Slots (Q: $queue) - $TOTALSLOTS - generic_data - - - Average load (Q: $queue) - $AVGLOAD - generic_data - - - Slots in Status aoACDS (Q: $queue) - $ADMSTATUS - generic_data - - - Slots in Status cdsuE (Q: $queue) - $ERRSTATUS - generic_data - " -done - -echo " - Number of Queues - $NUMQUEUE - generic_data"