Categories
Uncategorized

Get user list in AD from a group

dsquery group -samid "GroupName" | dsget group -members | dsget user -samid > save-it-to-a-file.txt

Categories
Uncategorized

Sungrid engine, commands

Get info about a particular job. This will show errrors, script name, etc

qstat -j jobid # show details about a particular running job

qconf -sul #show all groups
qconf -su group-name # DIsplay users belonging to a particular group
qconf -au username group-name # Add user to a group
qconf -du username group-name # Remove user from a group

#LOG Rotate, run the following
/usr/local/sge/util/logchecker.sh
#Logs are located ...
/usr/local/sge/boson_nest/spool/qmaster/messages*
#Accounting is located  ...
/usr/local/sge/boson_nest/common/accounting*

SSH hop

ssh -Y -J server1 server2

Suspend submitting host from accepting jobs. This command will stop sge_execd on the node(s). Run it from the scheduler host, as admin. If using all, it will shutdown the service on all nodes

qconf -k2 node1,node2,node3,...all