cmd line cpu

  • Thread starter Thread starter winter
  • Start date Start date
W

winter

Hi all,

Is there any easy way to capture the non-idle CPU usage via cmd line?
I know of pmon, but want something i can script with. I want to write
some checks that will check % CPU usage of certain processes (or %
total if nothing else). The closest thing I can find are performance
counters with a little .bat as the action...

thx
 
pslist is fine, but it doesnt give me the CPU usage. Ive got a shonky
app, that on occasion goes nuts and chews 100%CPU - want to
periodically check the usage of system + PID, methinks perf mon is the
only way.....

winter
 
winter avait énoncé :
pslist is fine, but it doesnt give me the CPU usage. Ive got a shonky
app, that on occasion goes nuts and chews 100%CPU - want to
periodically check the usage of system + PID, methinks perf mon is the
only way.....

winter

perf mon is an ideal tool to monitor shonky appz, why use something
else ?

grtz
 
winter said:
pslist is fine, but it doesnt give me the CPU usage. Ive got a shonky
app, that on occasion goes nuts and chews 100%CPU - want to
periodically check the usage of system + PID, methinks perf mon is the
only way.....
if it is your own pc, you might take a look at www.samurize.com
It takes some work to tailor the config to your needs, but you get a
transparent grapic overlay with your indicators not interfering with the
normal apps. IIRC the Pre-Exported-Config Az6 includes the Cpu usage
and also shows hoggers. Here is the link to a screenshot:
http://www.durhamstudents.co.uk/samurize/userfiles/126/Az6.jpg
The frame with the cpu-icon shows the current usage of 9% and just
beneath the graph there is iexplore shown with hogging 5% of the cpu.

HTH
 
In said:
pslist is fine, but it doesnt give me the CPU usage. Ive got a
shonky app, that on occasion goes nuts and chews 100%CPU - want to
periodically check the usage of system + PID, methinks perf mon is
the only way.....

winter

Perhaps two pslist outputs x seconds apart (looking at User Time /
Kernel Time) change would be workable... Cluky to be sure, but _an_
idea.
 
Back
Top