# How to find finished jobs

**URL:** <https://community.openpbs.org/t/how-to-find-finished-jobs/3869>\
**Category:** Users/Site Administrators\
**Created:** [May 13, 2024, 7:40am UTC](https://community.openpbs.org/t/how-to-find-finished-jobs/3869 "2024-05-13T07:40:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OldWolf55](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@OldWolf55](https://community.openpbs.org/u/OldWolf55)\
**Post date:** [May 13, 2024, 7:40am UTC](https://community.openpbs.org/t/how-to-find-finished-jobs/3869/1 "2024-05-13T07:40:37Z")

</div>

Hi, I’m new to PBS and am trying to get the ID of the jobs started in the last 3 days.  
On man page I’ve found the command : qstat -T

I’ve tried to give the command, with no result:

# qstat -x -T sat 3

qstat: Unknown queue destination sat  
qstat: Unknown Job Id 3.tcemn01

Are there other ways to get this info?

Many thanks for your help.

Here the output of the man qstat -T  
-T Displays estimated start time for queued jobs, replacing the Elap Time field with the Est Start field.  
Jobs with earlier estimated start times are displayed before those with later estimated start times.  
This sorts the jobs to show the order in which they will be executed.

```
             Running jobs are displayed before other jobs. Running jobs are sorted by their stime attribute (start
             time).

             Queued jobs whose estimated start times are unset (estimated.start_time = unset) are displayed after
             those with estimated start times, with estimated start time shown as a dash ("-"). Queued jobs with
             estimated start times in the past are treated as if their estimated start times are unset.

             Time displayed is local to the qstat command. Current week begins on Sunday.

             The following table shows the format for the Est Start field when the -w option is not used:

             Format Job's Estimated Start Time Example
             HH:MM Today 15:34
             Day HH Within 7 days, after today We 15
             Month This calendar yr, > this wk Feb
             YYYY <= 5 yrs from today, > this yr 2012
             >5yrs > 5 years from today >5yrs

```

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [May 13, 2024, 7:05pm UTC](https://community.openpbs.org/t/how-to-find-finished-jobs/3869/2 "2024-05-13T19:05:59Z")

</div>

> [@OldWolf55](#):
>
> Are there other ways to get this info?

You would need to enable the in-built pbshook called PBS\_est and make sure all jobs are submitted with a walltime request.

```auto
qmgr -c "set pbshook PBS_est enabled = True"
qmgr -c "set pbshook PBS_est freq = <time interval in seconds>"
qmgr -c "list pbshook"

```

Please refer 4.9.15.1 Configuring Start Time Estimation in the PBS Professional 2024.1 Administrator’s Guide on page AG-134

---

<div class="post-metadata">

**Author:** ![OldWolf55](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@OldWolf55](https://community.openpbs.org/u/OldWolf55)\
**Post date:** [May 14, 2024, 7:05am UTC](https://community.openpbs.org/t/how-to-find-finished-jobs/3869/3 "2024-05-14T07:05:36Z")

</div>

Many thanks.  
Have a good day.

```
  Pierluigi

```
