
Scripting performance Monitor
You can use WMI to get performance measure counters. As long as the counters
are already installed, you can get to them. It's a pretty good learning
curve though but in the NT Reskit Supp 4, there are more then enough samples
to get you going. If WMI is installed first, the reskit will install the
scripts in rmtadmin directory under the install dir of the reskit.
Shawn
Quote:
> Is there a way through WSH to get Performance Monitor data? What I would
> like to do is have a script running in the background that periodically
> checks a specific process. If that process is utilizing more than 75% of
the
> CPU I would like it to be stopped and then started. Right now I have
> Performance Monitor running with an Alert setup to run a batch file that
> does a net stop of the service and then a net start of the service. The
> problem with this is I must keep Performance Monitor running which means I
> stay logged onto the server. I could use srvany from the Server resource
kit
> to set a batch file up that runs Performance Monitor with my workspace,
but
> that does not seem as clean as running it via a script. Any assistance
would
> be appreciated.
> --
> Thank you,
> Aaron R. Hajduk