Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Windows WMI queries under Linux?

by mellin (Scribe)
on Jan 25, 2010 at 15:34 UTC ( #819516=perlquestion: print w/replies, xml ) Need Help??
mellin has asked for the wisdom of the Perl Monks concerning the following question:

Hi there

I need to run scheduled queries against certain Windows servers in so that I can further process the data later. I was under the impression that DBD::WMI allows me to do this, but it requires Win32::OLE which in turn seems to be built for Windows platform.

As I'm running these scheduled queries from Linux with the help of crond deamon, does anyone know of any other module that allows me to make WMI queries from Perl running on Linux?

Replies are listed 'Best First'.
Re: Windows WMI queries under Linux?
by tokpela (Chaplain) on Jan 25, 2010 at 16:40 UTC

    I have not done this for WMI but I have for connecting to a Windows database using ODBC.

    You could try to use DBI's dbiproxy script and DBD::WMI.

    The dbiproxy script would be running on the Windows box and would also have the DBD::WMI module installed.

    The Linux box would make the call using a proxy to the Windows box. The Windows box would execute the WMI query, gather the results and send back to the Linux box.

      Thanks for the idea. I had something similar on my mind already, but bringing this proxy type of machine in between the server and the Linux box does add to the complexity of the solution, which I'm not too keen on having.

      Then again, if it is the only way to accomplish the end mean, then I guess that's the way it has to go.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://819516]
Approved by planetscape
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-12-11 14:29 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (297 votes). Check out past polls.