Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying Component status via script?

Status
Not open for further replies.

Numanoid

MIS
Joined
Jul 21, 2003
Messages
2
Location
US
Hello all, I've been looking everywhere for an answer to a very simple question. Is there any way to query the status of a component (or group of components) via script or home made program?

Basically, I want to know if I can quickly check call times over multiple servers looking for abnormally high values. This would give me a jump on a potential hung components.

For example: Most (if not all) of our internal applications would be hung if component services displayed a call time of 50000ms. Can I somehow query this value?

Thanks,

Rich
 
Rich
I am having the same problem. I can not find out the status of the component. If you get an answer, please let me know.

Thanks
 
Hey there. I think I have found something to get us a little closer. I found that I can query certian aspects of MSDTC using WMI. Go to MSDN and do a search for:
Win32_PerfFormattedData_MSDTC_DistributedTransactionCoordinator

This will show you some perf counters that you can monitor with a WMI script/call. While it doesn't look like you can query individual components, it does look like you will be able to get overall statistics of MSDTC, including average, min and max call times.

The problem for me lies here: The counters are not in real time per se, so if you have a max call time of say 300,000ms and fix the problem, the counter will not be reset until the DTC service is restarted. Once the call time is back to normal, if you query the stats again it will still say a 300,000ms call time under max.

The average call time is useless since when a component releases, it sits at 0 for a while bringing the actual average WAY down. Minimum is equally as useless for what we are looking to do.

What I'm looking for now is a way to reset the perf counters to zero without stopping the DTC.

I used a program called scriptomatic to generate a script that monitors the above WMI class. You just find the class you are looking for (from a pull down menu that reads installed classes on the server), and a sample script is already setup to work. It's really quite amazing! Just modify it to exclude what you won't need and you're set.

Good luck, and if you get anywhere, let me know. My email address is depecheduran@yahoo.com





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top