Scripting performance Monitor 
Author Message
 Scripting performance Monitor

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



Tue, 17 Sep 2002 03:00:00 GMT  
 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




Tue, 17 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Scripts for performance monitor

2. How to monitor drive performance.....

3. Accessing Performance Monitor Counters from vbscript

4. Performance Monitor & vbscripts

5. Performance Monitor - c'mon gurus

6. performance monitor at startup

7. Executing a WSH file from Performance Monitor alert

8. Performance Monitor Alerts

9. Performance Monitor

10. Performance Monitor

11. Experience using the Performance Monitoring Provider

12. Performance Monitoring

 

 
Powered by phpBB® Forum Software