GridEngineModificationFile

From UniCluster

Using Files with qconf

To add or modify objects using files with qconf, use the command:

 qconf -{A,M}<object> <filename>

-A means add; -M means modify.

<object> can be:

  • c: complex
  • ckpt: checkpoint environment
  • e: execution host
  • p: parallel environment
  • q: queue
  • u: user set

This option can be used in combination with the "show" option of qconf (qconf -s<obj>) to take an existing object, modify it, and then update the existing object or create a new one.

For example, this shell script specifies queues of a checkpoint environment from a list in a file:

 #!/bin/sh
 # ckptq.sh: specify queues of a checkpoint from a list in a file
 # Usage: ckptq.sh <checkpoint-env-name> <filename>
 # <filename> contains a list of queues,
 #    separated by commas and/or newlines
 
 TMPFILE=/tmp/ckptq.$$
 CKPT=$1
 QUEUELIST=$2
 
 qconf -sckpt $CKPT | grep -v 'queue_list' > $TMPFILE
 echo  queue_list `cat $QUEUELIST | \
   tr "\012" " " | tr "," " "` >> $TMPFILE
 qconf -Mckpt $TMPFILE
 rm $TMPFILE


Back to Administrative How Tos.