Tomtom has asked for the wisdom of the Perl Monks concerning the following question:

Hello everyone,

I was wondering if there was a way to test if a remote Windows service is running while being on a Solaris ?
I know there is the Win32::Service module, with the GetServices and GetStatus functions, which look like what I need, but I'd need the Win32 module, which I guess is impossible on a Solaris ...

Does anyone have an idea on how to do this ?

Thanks in advance

Tomtom
  • Comment on testing a remote Win32 service while being on a Solaris

Replies are listed 'Best First'.
Re: testing a remote Win32 service while being on a Solaris
by marto (Cardinal) on Jul 22, 2005 at 15:43 UTC
    Hi,

    Depending on what services your looking to monitor Big sister may be a place to start.
    Its Open Source and written in Perl and is SNMP aware.

    Hope this helps,

    Martin
Re: testing a remote Win32 service while being on a Solaris
by ZlR (Chaplain) on Jul 25, 2005 at 14:26 UTC

    It won't answer your question directly but scanning remote services is sooo easy to do from a windows machine.

    On the other hand running Win32::Services from a Solaris box seems like something difficult to achieve.

    Therefore, I think the easiest way would be to write a Perl script running on a Windows server and then send the relevant results to the Unix server.

    zlr .

Re: testing a remote Win32 service while being on a Solaris
by Transient (Hermit) on Jul 22, 2005 at 17:29 UTC
    Could you have a script on the Windows' machine that gets executed via ssh?
      Unfortunately, I don't think it will be possible, since there is a large number of Windows servers, and I can't have a script installed on each of these machines.