PBS command to see other users job from user environment


#1

Hi,
I am having some problems with qstat. As as user with no privileges (manager, operator), I cannot see other users submited jobs on the server queues. Only the root is able to.
What are the requirements for the users to be able to see each others jobs on the qstat command?

Thanks

Regards,
Praveen


#2

As mentioned here, you have to -

qmgr: set server query_other_jobs = True

Thanks,
Prakash


#3

Hi,

Thanks for the reply.
Just I need to execute the above command from CLI right? or should I put it in some PBS configuration file.
Please correct me.

Also can I use below command from CLI
qmgr -c “set server query_other_jobs = True”

Regards,
Praveen


#4

This will also work.


#5

Hi,

After executing above qmgr command, it’s true that “qstat -a” command will list all user’s job from user environment.

Thanks


#6

Thank you for confirming.


#7

Hi,

Sorry for wrong typo. My question is "After executing above qmgr command, Is it true that “qstat -a” command will list all user’s job from user environment?

please read my query again.

Thanks


#8

Okay. The answer to your question is yes.

Below is an example -

[test1@d_server /]$ qsub – /bin/sleep 1111
999.d_server
[test1@d_server /]$ qstat -s

d_server:
Req’d Req’d Elap
Job ID Username Queue Jobname SessID NDS TSK Memory Time S Time


999.d_server test1 workq STDIN 1623 1 1 – – R 00:00
Job run at Tue Nov 14 at 18:13 on (d_server:ncpus=1)
[test1@d_server /]$ exit
[root@d_server /]# qsub – /bin/sleep 1111
1000.d_server
[root@d_server /]# qstat
Job id Name User Time Use S Queue


999.d_server STDIN test1 00:00:00 R workq
1000.d_server STDIN root 00:00:00 R workq
[root@d_server /]# su test1
[test1@d_server /]$ qstat -a

d_server:
Req’d Req’d Elap
Job ID Username Queue Jobname SessID NDS TSK Memory Time S Time


999.d_server test1 workq STDIN 1623 1 1 – – R 00:00
1000.d_server root workq STDIN 1629 1 1 – – R 00:00
[test1@d_server /]$ qmgr -c “p s” | grep query
set server query_other_jobs = True
[test1@d_server /]$ exit
[root@d_server /]# qmgr -c “set server query_other_jobs = False”
[root@d_server /]# qstat
Job id Name User Time Use S Queue


999.d_server STDIN test1 00:00:00 R workq
1000.d_server STDIN root 00:00:00 R workq
[root@d_server /]# su test1
[test1@d_server /]$ qstat
Job id Name User Time Use S Queue


999.d_server STDIN test1 00:00:00 R workq
[test1@d_server /]$ qstat -a

d_server:
Req’d Req’d Elap
Job ID Username Queue Jobname SessID NDS TSK Memory Time S Time


999.d_server test1 workq STDIN 1623 1 1 – – R 00:01
[test1@d_server /]$

Hope this helps…


#9

Hi,

Thanks for the proper guidance.

I will confirm you if it works in our cluster.


#10

Hi,

It worked. We can able to see other users job. Thanks.


#11

thank you for informing…