Is there a way to list the node which executed a Sun Grid Engine job using qstat or other SGE commands?
I have to get this information using a python script. I have figured out how to execute SGE commands from python but I didn't find the solution to list the execution node for a particular job. I have tried to list finished jobs using
qstat -s z -f -F
but the name of the host which executed the job dosen't appear in this list. Anyone could help me please?
SGE overview SGE is a batch-queuing system; it is not grid middleware. SGE is an open-source community effort. It is free to download and use. Some features of SGE are introduced in this section below.
Qrsh is similar to qlogin in that it submits an interactive job to the queuing system. It uses the current terminal for user I/O. Usually, qrsh establishes a rsh(1) connection with the remote host. If no command is given to qrsh, an rlo- gin(1) session is established.
The qsub command is used to submit jobs to the queue. job, as previously mentioned, is a program or task that may be assigned to run on a cluster system. qsub command is itself simple, however, it to actually run your desired program may be a bit tricky. is because qsub, when used as designed, will only run scripts.
If you have your job id
qacct -j {job id}
Otherwise you can list recents jobs
qacct -j -b {YYYYMMDDHHmm}
The node that executed the job is the value under the key "hostname".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With