# How to configure how long completed jobs are shown in qstat -x

**URL:** https://community.openpbs.org/t/how-to-configure-how-long-completed-jobs-are-shown-in-qstat-x/2905
**Category:** Users/Site Administrators
**Created:** [December 13, 2021, 12:48pm UTC](https://community.openpbs.org/t/how-to-configure-how-long-completed-jobs-are-shown-in-qstat-x/2905 "2021-12-13T12:48:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shapovalovts](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/shapovalovts/32/467_2.png) [@shapovalovts](https://community.openpbs.org/u/shapovalovts)
#### Post date: [December 13, 2021, 12:48pm UTC](https://community.openpbs.org/t/how-to-configure-how-long-completed-jobs-are-shown-in-qstat-x/2905/1 "2021-12-13T12:48:34Z")

</div>

Hello,

In Torque there was keep\_completed parameter in server settings, but I can’t find anything that replaces keep\_completed in OpenPBS (and PBS Pro). We need to configure how much time finished/canceled jobs will be shown in qstat -x, how we can do that?

Best regards,

Taras

---

<div class="post-metadata">

### Author: ![boboshaq](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@boboshaq](https://community.openpbs.org/u/boboshaq)
#### Post date: [December 13, 2021, 10:08pm UTC](https://community.openpbs.org/t/how-to-configure-how-long-completed-jobs-are-shown-in-qstat-x/2905/2 "2021-12-13T22:08:45Z")

</div>

Hi,  
I think that You must change: job\_history\_duration parameter:

> [@\[Q\] job\_history\_duration parameter](https://community.openpbs.org/t/q-job-history-duration-parameter/1297):
>
> Hello, members. I want to see past job execution status. I need 6 months ~ 1 year ago. Is job\_history\_duration parameter for that? The default(two weeks) enough for cluster users and qstat -x. But, It is too short for me(administrator) Can I check past job status for more than three weeks ago? General administrators make a report about cluster usage. Could you tell me how to create it? (What data source use?) How many jobs submitted into clusters? How many user used cluster. How long t…

---

<div class="post-metadata">

### Author: ![shapovalovts](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/shapovalovts/32/467_2.png) [@shapovalovts](https://community.openpbs.org/u/shapovalovts)
#### Post date: [December 14, 2021, 10:22am UTC](https://community.openpbs.org/t/how-to-configure-how-long-completed-jobs-are-shown-in-qstat-x/2905/3 "2021-12-14T10:22:50Z")

</div>

Indeed, thank you!

Best regards,  
Taras

---

<div class="post-metadata">

### Author: ![agurban](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/agurban/32/67_2.png) [@agurban](https://community.openpbs.org/u/agurban)
#### Post date: [December 14, 2021, 5:41pm UTC](https://community.openpbs.org/t/how-to-configure-how-long-completed-jobs-are-shown-in-qstat-x/2905/4 "2021-12-14T17:41:38Z")

</div>

See whether section 14.15, “Managing Job History”, p. AG-531 in the PBS Administrator’s Guide helps. Cheers.
