1

I'd like to write some quick Python code to assess the CPU, memory, disk, and networking usage of my Windows XP system.

Are there existing Python libraries that would allow me to access that information? Or, are there DLL's that I can call from Python? (If so, a code sample would be appreciated)

2 Answers 2

4

I think WMI is the resource to use. Especially, look at the Win32_PerfFormattedData* classes in the MSDN.

A quick search turned this up (among others):

http://timgolden.me.uk/python/wmi.html

Sign up to request clarification or add additional context in comments.

Comments

0

The MS Scriptomatic tool can generate WMI scripts in Python as well as VBScript, JScript and Perl.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.