We help IT Professionals succeed at work.

Batch File: IIS7 : List sites process CPU load

Hi there,

I need to make a batch file that list all IIS7 sites process CPU load.

EXPECTED OUTPUT:
"SITE","PROCESS ID","CPU LOAD"
"site1","1345","38"
"site2","5623","78"

Thanks for your help,
Rene
Comment
Watch Question

bbaoIT Consultant
Commented:
try ProcDump v4.01 (procdump.exe), combining with the FIND (find.exe) it may allow you to filter the output for listing specific process names.

ProcDump v4.01
http://technet.microsoft.com/en-us/sysinternals/dd996900

Author

Commented:
Sorry bbao for taking so long to reply.
I'll followup shortly.
Cheers

Author

Commented:
@bbao

I'v played arround with procdump and still did not figure out how to use it to do what I need.

Hoping you are familiar with procdump. Would you mind scripting the batch file?

Thanks and cheers,
Rene
IMO, Instead of follow-up the web-sites...you can concentrate on the worker-process\app. pool

View a List of Worker Processes (IIS 7)
http://technet.microsoft.com/en-us/library/cc771273(WS.10).aspx

Author

Commented:
@e_aravind:
I'v looked arround and still did find the required command line.
Would you by any chance, have the required command line?

Thanks
The link i pasted is an option to read the CPU values in the GUI (console)
Note sure how to export the same.


The closest thing i got is, appcmd, but mostly to read\modify the config files...nothing for the real-time monitoring.
http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/

Author

Commented:
@e_aravind:
Sorry for the late response. I'll look at it next week.
Happy new year ;)

Author

Commented:
Sorry for the late reply.
Thanks for your help :)

Cheers,
Rene