Home
 
Platform LSF Technical Tip

How to quickly delete all the job groups

A collection of jobs can be organized into job groups for easy management. A job group is a container for jobs in much the same way that a directory in a file system is a container for files. Users can submit, view, and control jobs according to their groups rather than looking at individual jobs. However, there is no easy way to delete all the root level job groups.

Here's a sample Korn shell script that can help delete all the job groups:

#/bin/ksh
glist=`bjgroup | grep -e "$1*" | awk'{print $1}'`
for group in $glist;
do
bgdel $group 2> /dev/null
done