Extracting info from OS/hardware

popov google at evpopov.com
Tue Mar 16 12:14:58 EST 2004


"Thomas Weholt" <2002 at weholt.org> wrote in message news:<nOq3c.9451$_c4.119500 at news4.e.nsc.no>...
> I need a piece of code to extract as much info about OS, current status and
> hardware from a machine as possible ( at least, all available partitions and
> free space on these, CPU-speed, free/total memory and stuff like that ) at
> one given moment on Linux and Windows.
> 
> Any hints? Can I call something in win32all on Windows or read some file on
> linux? I'm not sure where to begin.
> 
> Thomas

Under windows, you can use winmsd (==msinfo32) (works with NT4 / W2K /
XP / W2003 - don't know for other Windows versions). You can select
the amount of info you want by providing arguments to winmsd. Have a
look to msdn:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;255713



More information about the Python-list mailing list