From f1327c9562101ffe0cbbddd044f9956a88eddff2 Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Fri, 26 Aug 2016 10:00:46 -0400 Subject: [PATCH] * SGE: Added qconf dump tools. Added from my hpc-explore/sge tools from late 2015 time frame. --- sge/conf/dump_host_info.sh | 18 ++++++++++++++++++ sge/conf/dump_pe_info.sh | 16 ++++++++++++++++ sge/conf/dump_project_info.sh | 17 +++++++++++++++++ sge/conf/dump_queue_info.sh | 17 +++++++++++++++++ sge/conf/dump_rqs_info.sh | 16 ++++++++++++++++ 5 files changed, 84 insertions(+) create mode 100755 sge/conf/dump_host_info.sh create mode 100755 sge/conf/dump_pe_info.sh create mode 100755 sge/conf/dump_project_info.sh create mode 100755 sge/conf/dump_queue_info.sh create mode 100755 sge/conf/dump_rqs_info.sh diff --git a/sge/conf/dump_host_info.sh b/sge/conf/dump_host_info.sh new file mode 100755 index 0000000..257a423 --- /dev/null +++ b/sge/conf/dump_host_info.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +mkdir -p host-config + +# List of execution hosts +EXECHOSTS=$(qconf -sel) + +echo "Exec hosts:" +qconf -sel +echo "" + +for H in $EXECHOSTS; do + #H=${H%.cm.cluster} + qconf -se $H > host-config/$H.txt + echo "$H::" + cat host-config/$H.txt + echo +done diff --git a/sge/conf/dump_pe_info.sh b/sge/conf/dump_pe_info.sh new file mode 100755 index 0000000..fca3e10 --- /dev/null +++ b/sge/conf/dump_pe_info.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +mkdir -p pe-config + +PES=$(qconf -spl) + +echo "Parallel-environments:" +qconf -spl +echo "" + +for P in $PES; do + qconf -sp $P > pe-config/$P.txt + echo "$P::" + cat pe-config/$P.txt + echo +done diff --git a/sge/conf/dump_project_info.sh b/sge/conf/dump_project_info.sh new file mode 100755 index 0000000..14dd362 --- /dev/null +++ b/sge/conf/dump_project_info.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +mkdir -p project-config + +QUEUES=$(qconf -sprjl) + +echo "Queues:" +qconf -sprjl +echo "" + +for Q in $QUEUES; do + #if [ "$Q" = all.q ]; then continue; fi + qconf -sprj $Q > project-config/$Q.txt + echo "$Q::" + cat project-config/$Q.txt + echo +done diff --git a/sge/conf/dump_queue_info.sh b/sge/conf/dump_queue_info.sh new file mode 100755 index 0000000..60466c9 --- /dev/null +++ b/sge/conf/dump_queue_info.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +mkdir -p queue-config + +QUEUES=$(qconf -sql) + +echo "Queues:" +qconf -sql +echo "" + +for Q in $QUEUES; do + if [ "$Q" = all.q ]; then continue; fi + qconf -sq $Q > queue-config/$Q.txt + echo "$Q::" + cat queue-config/$Q.txt + echo +done diff --git a/sge/conf/dump_rqs_info.sh b/sge/conf/dump_rqs_info.sh new file mode 100755 index 0000000..4e5d73f --- /dev/null +++ b/sge/conf/dump_rqs_info.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +mkdir -p rqs-config + +RQSS=$(qconf -srqsl) + +echo "RQS found:" +qconf -srqsl +echo "" + +for P in $RQSS; do + qconf -srqs $P > rqs-config/$P.txt + echo "$P::" + cat rqs-config/$P.txt + echo +done