Re: Extracting info from OS/hardware

From: Tim Golden (tim.golden_at_viacom-outdoor.co.uk)
Date: 03/16/04


Date: 16 Mar 2004 03:29:00 -0800

Josiah Carlson <jcarlson@nospam.uci.edu> wrote in message news:<c33rct$n11$1@news.service.uci.edu>...
> > In Linux, you can get a lot of information on hardware and status by examining
> > files in the /proc directory. For example, from doing cat /proc/cpuinfo on my
> > system:
> [snip proc info]
>
> [snip Windows env vars examples]
>
> There is likely a better and faster way for both by using pywin32
> (current name for win32 extensions).
>

For this kind of thing on Win32, WMI is very useful.
Check out:

http://tgolden.sc.sabren.com/python/wmi.html

In theory, something equivalent should be available for Linux:
WMI is based on the DMTF / WBEM industry standard. However
as it stands this module is completely windows-centric,
relying as it does on Microsoft's implementation of the
standard and the pywin32 libraries.
Not to say someone couldn't merge it with some equivalent
Linux implementation if there were one and someone had the time...

TJG



Relevant Pages

  • Re: Linux and WMI
    ... "Can i access WMI on Windows XP from Linux station?". ... I have an application and i want to write the same in C++ under Linux. ... The research I've done so far though basically indicates I'd have to write a client to deploy on each linux box which would send information back to the windows clients, as XML, over a standard protocol like http or smtp. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Remote Linux Shutdown
    ... Well, I tried to find some implementations of WMI on Linux, but I ... Regards Martin Rublik ...
    (microsoft.public.dotnet.csharp.general)
  • Re: WMI & other operating systems
    ... > second - Is it possible to simply extend CIM Repository about something like ... > Linux classes? ... The WMI and CIM are operating system proprietary tools. ...
    (microsoft.public.windows.server.scripting)
  • Re: ntpd PLL and clock overshoot
    ... A few days ago I reported that I measured a larger overshoot with nptd 4.2.0a than with ntpd 4.1.0. ... can you tell me what is wrong with Linux with regard to precision timekeeping? ... Other people asked where the Linux implementation of the adjtimexsystem call can be found. ...
    (comp.protocols.time.ntp)
  • Re: Unable to obtain a shared lock on NFS from FreeBSD client
    ... you *are* talking about the broken Linux implementation. ... > recent versions of Linux actually fix it. ... Yes i am talking about the *broken* Linux implementation, ...
    (comp.unix.bsd.freebsd.misc)