diff --git a/tools/universe-scripts/cobalt-bin-cmds.txt b/tools/universe-scripts/cobalt-bin-cmds.txt new file mode 100644 index 0000000000000000000000000000000000000000..201061d61c69bfd5e16f6e006f06915f4412fa58 --- /dev/null +++ b/tools/universe-scripts/cobalt-bin-cmds.txt @@ -0,0 +1,31 @@ +boot-block +cluster_simulator_run +cobalt-mpirun +cqdel +cqhist +cqstat +cqsub +cqwait +find-location +get-bootable-blocks +hammer +histm +histquery +nodelist +partlist +pstat +qalter +qdel +qhold +qmove +qrls +qselect +qsim +qstat +qsub +radm +rstat +showprof +showres +slpstat +userres diff --git a/tools/universe-scripts/cobalt-sbin-cmds.txt b/tools/universe-scripts/cobalt-sbin-cmds.txt new file mode 100644 index 0000000000000000000000000000000000000000..ad3827e9717d318966ab2776207d0ee5f1840791 --- /dev/null +++ b/tools/universe-scripts/cobalt-sbin-cmds.txt @@ -0,0 +1,15 @@ +bgqsystem +bgsched +bgsystem +cqadm +cqm +cweb +nodeadm +partadm +perfdata +prologue_helper +releaseres +schedctl +setres +system_script_forker +user_script_forker diff --git a/tools/universe-scripts/gen-conf-wrapper.sh b/tools/universe-scripts/gen-conf-wrapper.sh new file mode 100755 index 0000000000000000000000000000000000000000..3c6b4859354645bab3d42fd1d7aa545bc57b3f38 --- /dev/null +++ b/tools/universe-scripts/gen-conf-wrapper.sh @@ -0,0 +1,26 @@ +#!/bin/bash -e +# Generate a conf file wrapper for Cobalt commands. + +usage="gen-conf-wrapper.sh suffix subdir conf_file [command_paths]" + +if [ -z "$4" ] +then + echo $usage +fi + +suffix=$1 +outdir=cmd-$suffix/$2 +conf_file=$3 + +mkdir -p $outdir +for cmd in "${@:4}" +do + cat > $outdir/$cmd-$suffix << EOF +#!/bin/bash +export COBALT_CONFIG_FILES=$conf_file +exec $cmd "\$@" +EOF +chmod 755 $outdir/$cmd-$suffix + +done +