Re: Perl for windows Problem



On Thu, Jan 6, 2011 at 7:46 AM, sync <jiannma@xxxxxxxxx> wrote:
That's  to say , is there some methods that I can use to write some perl
scripts on Linux Server
to check the Windows Server  System information ( CPU load , Memory and so
on )?

I think the best would be to activate WMI on the Windows boxes and
then write a script using DBD::WMI that you run on the linux box to
read out the information:

http://search.cpan.org/~corion/DBD-WMI-0.06/lib/DBD/WMI.pm

This is also the way in which most discovery/inventory tooling works.
It's much easier in my opinion than to deploy some CGI script or other
daemon to all your Windows machines.
--
Mike
.



Relevant Pages

  • WIM script crash in XP
    ... First, let me say that I am not a Windows system or network administrator, ... We run hundreds of testcases every night to validate recent changes to the ... To measure memory usage, ... we use a Visual Basic script that utilizes Windows Management Instrumentation ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Perl for windows Problem
    ... You have a Windows server, and a Linux server. ... Doing this entirely in Perl, I'd use Sys::Info, or if that didn't get all the data I wanted I'd go to the Win32 modules, and write a CGI script on the Windows box that gathers this information and spits it back in XML. ...
    (perl.beginners)
  • WMI crash on Windows XP SP2
    ... run testcases to measure the quality of our application, ... application on various Windows platforms. ... To measure memory usage, we ... This script has been functionally successfully until we started running ...
    (microsoft.public.win32.programmer.wmi)
  • Re: memory error
    ... > def windows(): ... > I've written the script several ways, ... > memory and causes the crash to happen quicker, ...
    (comp.lang.python)
  • [Full-disclosure] [DoS] Firefox 3 beta 5 on Ubuntu 7.10 (hangs the OS)
    ... Linux OS completely. ... This algorithm takes M*2^N bytes of memory (where M is the length of the ... browser to alert you that this script is going to take a really long time to ... that the windows machine had twice more RAM and processing ...
    (Full-Disclosure)