|
View Full Version : cmd line cpu
winter 02-08-2004, 09:39 PM 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
Paul R. Sadowski 02-08-2004, 10:19 PM Take a look at pslist at http://www.sysinternals.com
"winter" <shonkyholdings@hotmail.com> wrote in message
news:3ca4cc49.0402081339.1036b9f@posting.google.com...
> 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
Paul R. Sadowski 02-08-2004, 10:19 PM Take a look at pslist at http://www.sysinternals.com
"winter" <shonkyholdings@hotmail.com> wrote in message
news:3ca4cc49.0402081339.1036b9f@posting.google.com...
> 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
winter 02-09-2004, 09:20 PM 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
>"Paul R. Sadowski" <xpert@mailshell13.mailshell.com.NOWORMS> wrote in message >news:<uGO7bGp7DHA.3648@TK2MSFTNGP11.phx.gbl>...
> Take a look at pslist at http://www.sysinternals.com
winter 02-09-2004, 09:20 PM 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
>"Paul R. Sadowski" <xpert@mailshell13.mailshell.com.NOWORMS> wrote in message >news:<uGO7bGp7DHA.3648@TK2MSFTNGP11.phx.gbl>...
> Take a look at pslist at http://www.sysinternals.com
chriske911 02-09-2004, 09:26 PM 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
>
>> "Paul R. Sadowski" <xpert@mailshell13.mailshell.com.NOWORMS> wrote in
>> message >news:<uGO7bGp7DHA.3648@TK2MSFTNGP11.phx.gbl>... Take a look at
>> pslist at http://www.sysinternals.com
perf mon is an ideal tool to monitor shonky appz, why use something
else ?
grtz
chriske911 02-09-2004, 09:26 PM 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
>
>> "Paul R. Sadowski" <xpert@mailshell13.mailshell.com.NOWORMS> wrote in
>> message >news:<uGO7bGp7DHA.3648@TK2MSFTNGP11.phx.gbl>... Take a look at
>> pslist at http://www.sysinternals.com
perf mon is an ideal tool to monitor shonky appz, why use something
else ?
grtz
Matthias Tacke 02-10-2004, 10:23 AM winter wrote:
>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
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
Matthias Tacke 02-10-2004, 10:23 AM winter wrote:
>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
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
Mark V 02-10-2004, 01:32 PM In microsoft.public.win2000.cmdprompt.admin winter wrote:
> 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
>
>>"Paul R. Sadowski" <xpert@mailshell13.mailshell.com.NOWORMS> wrote
>>in message >news:<uGO7bGp7DHA.3648@TK2MSFTNGP11.phx.gbl>...
>> Take a look at pslist at http://www.sysinternals.com
Perhaps two pslist outputs x seconds apart (looking at User Time /
Kernel Time) change would be workable... Cluky to be sure, but _an_
idea.
Mark V 02-10-2004, 01:32 PM In microsoft.public.win2000.cmdprompt.admin winter wrote:
> 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
>
>>"Paul R. Sadowski" <xpert@mailshell13.mailshell.com.NOWORMS> wrote
>>in message >news:<uGO7bGp7DHA.3648@TK2MSFTNGP11.phx.gbl>...
>> Take a look at pslist at http://www.sysinternals.com
Perhaps two pslist outputs x seconds apart (looking at User Time /
Kernel Time) change would be workable... Cluky to be sure, but _an_
idea.
|
|
|