Program to capture CPU usage over time [email protected] (Simon Hutchinson)

​I have been asked multiple times if there is an easy way to capture a list of jobs with the amount of CPU they, with a program. The answer is, of course, “Yes”. I thought it was time to give an example of a program example of how I would do this.
My scenario is that I need to capture all the jobs in this partition with the CPU percentage they are using, every five minutes. This data needs to be captured in an output file, or in this example it’s a table. The information I need is:

CPU percent
Job name
Subsystem and the library it is found in
User name
Job type – batch, interactive, prestart, etc.
Function and function type
Job status
CPU time
Time the data was captured

Read more » Read More 

Verified by MonsterInsights