How can I get system CPU usage and individual job CPU usage from database output of WRKSYSACT command?

1480 pts.
Tags:
AS/400
CL Program
CPU
How can I get current system CPU usage and current individual job CPU usage from database file output of WRKSYSACT command. Which are the fields which store these values. I would like to write a program which reads the output (*file)of WRKSYSACT command. This program would send a message/mail when System CPU crosses a particular %age value(Eg.80%) or when cpu usage by a job crosses a particular %age (Eg.25%).


Software/Hardware used:
as400 cl programming
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

You may want to investigate the Performance Management  tools that come with with iSeries. Any one or two snapshots of WRKSYSSTS will not give you accurate enough information. Because CPU % is based on a period of time.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • CharlieBrowne
    You may want to investigate the Performance Management  tools that come with with iSeries. Any one or two snapshots of WRKSYSSTS will not give you accurate enough information. Because CPU % is based on a period of time.
    62,385 pointsBadges:
    report
  • CharlieBrowne
    62,385 pointsBadges:
    report
  • ToddN2000
    Your data may be skewed. The reason being when the data snapshot is taken. Interactively you would hit F10 to restart the statistics. You would get different results if you let this run for 4-5 hours and a new job just starts up. It will base the cpu time on the 4-5 hours its been running not the few minute the job has been running.  I would try Charlies suggestion listed above.

    131,645 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: