I’m thinking @agrawalravi90 may want to get a list of all reservations on the remote server. Unfortunately, there doesn’t seem to be a documented way to do that.
Looks like a doc bug to me. 2.29.5.2 should say that you use @
when you’re specifying the reservation ID. Right now it makes it sound
as if you can use @ alone.
Thanks for the replies guys. I tried using the reservation id and saw some weird results:
[ravi@pbspro2]$ pbs_rstat R0.pbspro @pbspro Resv ID Queue User State Start / Duration / End
--------------------------------------------------------------------- R0.pbspro R0 ravi@pbs CO Fri 00:00 / 3600 / Fri 01:00 pbs_rstat: illegally formed reservation identifier: @pbspro
This seemed to suggest that it took the remote server name from the job id itself, so then I just removed @server and tried it again: [ravi@pbspro2 ~]$ pbs_rstat R0.pbspro Resv ID Queue User State Start / Duration / End
--------------------------------------------------------------------- R0.pbspro R0 ravi@pbs CO Fri 00:00 / 3600 / Fri 01:00
Sure enough, seems like it just picks up remote server name from the job id, not from the @remote notation.
Is this expected behavior? The reference guide definitely mentions the @server notation, which doesn’t seem to be supported. pbs_rstat should probably be consistent with the syntax of qstat and use @server: [ravi@pbspro2 ~]$ qstat @pbspro Job id Name User Time Use S Queue
---------------- ---------------- ---------------- -------- - ----- 1.pbspro STDIN ravi 00:00:00 R workq
I am all for the change, but I actually think this is a bug rather than an RFE and so may not actually need an EDD. The pbs_rstat man page says:
Reservations at a server other than the default server:
Specify the remote server's name using @remote_server.
For an advance reservation:
[R]sequence_number[.server_name][@remote_server]
For a standing reservation:
[S]sequence_number[.server_name][@remote_server]
Though I suppose one could read that second line both ways, either as an explicit declaration that you can use @remote_server by itself, OR as just a preface to the two scenarios that follow that include the sequence_number.