sc3w
sc3w

Reputation: 1164

Sun Grid Engine finished job info

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?

Upvotes: 18

Views: 10703

Answers (1)

Finch_Powers
Finch_Powers

Reputation: 3116

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".

Upvotes: 23

Related Questions