# Enhance pbs\_config & pbs\_stat to support pbs\_snapshot

**URL:** <https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584>\
**Category:** Developers\
**Created:** [May 8, 2019, 1:11pm UTC](https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584 "2019-05-08T13:11:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![agrawalravi90](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@agrawalravi90](https://community.openpbs.org/u/agrawalravi90)\
**Post date:** [May 8, 2019, 1:11pm UTC](https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584/1 "2019-05-08T13:11:03Z")

</div>

Hi,

I’m proposing a change to pbs\_config to work with output of pbs\_snapshot instead of pbs\_diag to mimic a user’s setup. Please review the design document and provide your valuable feedback:

[https://pbspro.atlassian.net/wiki/spaces/PD/pages/1279590401/Enhance+pbs+config+to+support+pbs+snapshot](https://pbspro.atlassian.net/wiki/spaces/PD/pages/1279590401/Enhance+pbs+config+to+support+pbs+snapshot)

Thanks,  
Ravi

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [May 8, 2019, 7:16pm UTC](https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584/2 "2019-05-08T19:16:57Z")

</div>

Thanks for posting your proposed design and including your motivation for changes. One suggestion… if the --acct-logs option is only to be used in disposable environments, might we want to confirm that the user really wants to create new accounts on the local system? At least we can say we asked if they happen to run the command in the wrong window.

---

<div class="post-metadata">

**Author:** ![agrawalravi90](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@agrawalravi90](https://community.openpbs.org/u/agrawalravi90)\
**Post date:** [May 9, 2019, 7:55am UTC](https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584/3 "2019-05-09T07:55:49Z")

</div>

Sounds like a good thing to do, I’ve added that to the design

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [May 9, 2019, 4:13pm UTC](https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584/4 "2019-05-09T16:13:36Z")

</div>

Looks good to me @agrawalravi90. Thanks for updating.

---

<div class="post-metadata">

**Author:** ![agrawalravi90](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@agrawalravi90](https://community.openpbs.org/u/agrawalravi90)\
**Post date:** [May 13, 2019, 8:18am UTC](https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584/5 "2019-05-13T08:18:21Z")

</div>

Modified the design doc to add proposal to distribute pbs\_config inside PBS\_EXEC/unsupported alongside other PTL based commands like pbs\_loganalyzer & pbs\_stat. Please let me know if this sounds like a bad idea. Thanks.

---

<div class="post-metadata">

**Author:** ![agrawalravi90](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@agrawalravi90](https://community.openpbs.org/u/agrawalravi90)\
**Post date:** [May 17, 2019, 9:20am UTC](https://community.openpbs.org/t/enhance-pbs-config-pbs-stat-to-support-pbs-snapshot/1584/6 "2019-05-17T09:20:20Z")

</div>

FYI, I’ve edited the doc to also mention pbs\_stat command, and have renamed the snapshot option for both commands to “–snap”. Please let me know if there are any concerns. Thanks.
