I am looking at extracting disk IO statistics on Windows 2003 upon occurrence of some events, e.g. a long full GC occurring that is waiting a long time for CPU resource. I have read that Process Explorer allows you to do that, but it is a GUI based application, which entails that you must know when the problem will occur again and you a must already be logged into your server. However, because I do not know when it will happen, I need to write a script to output disk IO statistics when the last GC took more than x seconds.
Are there any such command line tools already available out there, such that I can simply call that program to output the results for me?