From 11076a562670c16b24090c4cf0a06c3601f4d783 Mon Sep 17 00:00:00 2001 From: q Date: Mon, 15 Dec 2014 17:58:01 +0200 Subject: [PATCH] vm node lists automatic --- anduril/300_byobu_squeue | 2 +- anduril/csc_vm_slurm_query | 2 +- anduril/slurm-maxfree | 2 +- anduril/slurm-random | 2 +- anduril/srun-maxfree | 2 +- anduril/srun-random | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/anduril/300_byobu_squeue b/anduril/300_byobu_squeue index 72e70ee..888f7da 100755 --- a/anduril/300_byobu_squeue +++ b/anduril/300_byobu_squeue @@ -1,6 +1,6 @@ #!/bin/bash -NODELIST=( vm3 vm4 vm5 vm6 ) +NODELIST=( $( scontrol show node|grep NodeName | sed -e 's,[^ ]\+=\([^ ]\+\) .*,\1,' ) ) NODERUNS=( ) diff --git a/anduril/csc_vm_slurm_query b/anduril/csc_vm_slurm_query index 966d29e..1596a03 100755 --- a/anduril/csc_vm_slurm_query +++ b/anduril/csc_vm_slurm_query @@ -1,6 +1,6 @@ #!/bin/bash -NODELIST=( vm3 vm4 vm5 vm6 vm7 vm8 ) +NODELIST=( $( scontrol show node|grep NodeName | sed -e 's,[^ ]\+=\([^ ]\+\) .*,\1,' ) ) NODERUNS=( ) diff --git a/anduril/slurm-maxfree b/anduril/slurm-maxfree index 3b85e4f..0e33dcd 100755 --- a/anduril/slurm-maxfree +++ b/anduril/slurm-maxfree @@ -6,7 +6,7 @@ then echo provide the script to run fi if [ -z "${ANDURIL_NODELIST}" ] -then NODELIST=( vm3 vm4 vm5 vm6 vm7 vm8 ) +then NODELIST=( $( scontrol show node|grep NodeName | sed -e 's,[^ ]\+=\([^ ]\+\) .*,\1,' ) ) else read -a NODELIST <<< "$ANDURIL_NODELIST" fi JOBROOT="$HOME/.srun" diff --git a/anduril/slurm-random b/anduril/slurm-random index cd4c49b..85b7f21 100755 --- a/anduril/slurm-random +++ b/anduril/slurm-random @@ -6,7 +6,7 @@ then echo provide the script to run fi if [ -z "${ANDURIL_NODELIST}" ] -then NODELIST=( vm3 vm4 vm5 vm6 vm7 vm8 ) +then NODELIST=( $( scontrol show node|grep NodeName | sed -e 's,[^ ]\+=\([^ ]\+\) .*,\1,' ) ) else read -a NODELIST <<< "$ANDURIL_NODELIST" fi JOBROOT="$HOME/.srun" diff --git a/anduril/srun-maxfree b/anduril/srun-maxfree index 0ce1464..083ac25 100755 --- a/anduril/srun-maxfree +++ b/anduril/srun-maxfree @@ -1,7 +1,7 @@ #!/bin/bash if [ -z "${ANDURIL_NODELIST}" ] -then NODELIST=( vm3 vm4 vm5 vm6 vm7 vm8 ) +then NODELIST=( $( scontrol show node|grep NodeName | sed -e 's,[^ ]\+=\([^ ]\+\) .*,\1,' ) ) else read -a NODELIST <<< "$ANDURIL_NODELIST" fi diff --git a/anduril/srun-random b/anduril/srun-random index fad78d3..370a02f 100755 --- a/anduril/srun-random +++ b/anduril/srun-random @@ -1,7 +1,7 @@ #!/bin/bash if [ -z "${ANDURIL_NODELIST}" ] -then NODELIST=( vm3 vm4 vm5 vm6 vm7 vm8 ) +then NODELIST=( $( scontrol show node|grep NodeName | sed -e 's,[^ ]\+=\([^ ]\+\) .*,\1,' ) ) else read -a NODELIST <<< "$ANDURIL_NODELIST" fi