# In the development of the cluster management system, we use PBSPro as a tool for job management, how to get the job information in real time, through the database or command line query?

**URL:** <https://community.openpbs.org/t/in-the-development-of-the-cluster-management-system-we-use-pbspro-as-a-tool-for-job-management-how-to-get-the-job-information-in-real-time-through-the-database-or-command-line-query/1219>\
**Category:** Developers\
**Created:** [September 27, 2018, 3:06am UTC](https://community.openpbs.org/t/in-the-development-of-the-cluster-management-system-we-use-pbspro-as-a-tool-for-job-management-how-to-get-the-job-information-in-real-time-through-the-database-or-command-line-query/1219 "2018-09-27T03:06:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nithinj](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/nithinj/32/45_2.png) [@nithinj](https://community.openpbs.org/u/nithinj)\
**Post date:** [September 27, 2018, 9:52am UTC](https://community.openpbs.org/t/in-the-development-of-the-cluster-management-system-we-use-pbspro-as-a-tool-for-job-management-how-to-get-the-job-information-in-real-time-through-the-database-or-command-line-query/1219/2 "2018-09-27T09:52:00Z")

</div>

> [@How to aggregate heterogeneous entire clusters into “one big cluster” for cross-cluster job submission](http://community.openpbs.org/t/how-to-aggregate-heterogeneous-entire-clusters-into-one-big-cluster-for-cross-cluster-job-submission/1217/5):
>
> The information disposed by qmgr -c "p s " , pbsnodes -av , qstat -fx , qstat -anws1 are in the memory. Any other attributes you change on any object is stored in database immediately - like form qmgr Node states are not updated in the database, since they are transient in nature, it is not stored in the database. you can get the real time job information by running qstat -fx , tracejob , pbs\_dtj You can use the PBS Libraries and develop code which suits your requirement , plese f…

Also, you can use `-F json` with qstat and pbsnodes commands which will dump results in json which then can be easily parsed by your programs.  
Usage: `qstat -f -F json`  
`pbsnodes -av -F json`

---

_[View the full topic](https://community.openpbs.org/t/in-the-development-of-the-cluster-management-system-we-use-pbspro-as-a-tool-for-job-management-how-to-get-the-job-information-in-real-time-through-the-database-or-command-line-query/1219)._
