Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?

Comment on Windows WMI queries under Linux?
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://819516]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-12-21 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls