Sun Grid Engine Notes Revision as of Thursday, 28 May 2026 at 13:06 UTC

Nodes

All nodes (and info)

qhost

# Get a list of all compute nodes
qhost | grep compute | awk '{print $1}'

Queues

Viewing all Queues

qstat -f

Enabling, Disabling, Clearing

Single Queue

# Enabling a queue
qmod -e all.q@compute-1-3.local

# Disabling a queue
qmod -d all.q@compute-1-3.local

# Clearing error state
qmod -c all.q@compute-1-3.local

All Queues

# Enable all.q on all nodes
qmod -e '*'

# Disable all.q on all nodes
qmod -d '*'

# Clear all.q on all nodes
qmod -c '*'

You can also disable a single queue on all nodes by replacing '*' with the name of the queue.

Jobs

All jobs currently running or in queue

qstat -u "*"

Details on a particular job

# E.g. Job ID is 568798
qstat -explain c -j 568798

Miscellanea

SGE Variables

All GE vars are in /opt/gridengine/default/common

Backups

# Use this to backup (prefer tarball)
inst_sge -bup

# Use this restore
inst_sge -rst

Restarting the SGE Service

service sgemaster.$(hostname -s) stop

Sources