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

I have a project, and I'm not sure it's even possible... I need to have an AIX server monitor the status of a particular process on a Win2K server. The Win2K server has telnet and ssh disabled. It would be highly preferably to do this without running anything extra on the Win2k box. Any suggestions?

--
Believe nothing, no matter where you read it, or who said it - even if I have said it - unless it agrees with your own reason and your own common sense.
(Buddha)
  • Comment on AIX box needs to fetch running-process info from Win2K

Replies are listed 'Best First'.
Re: AIX box needs to fetch running-process info from Win2K
by terra incognita (Pilgrim) on Nov 19, 2004 at 21:18 UTC
    Use snmp to monitor the process remotely.

    On RH Linux the command would be

    Snmpwalk –c public hostname hrSWRunName

    This will return all the process names and PID running on the windows machine in the following format.

    HOST-RESOURCES-MIB::hrSWRunName.1234 = STRING: “foo.exe”

    From this list it should be easy to parse out the name you want. This will of course require that you run "snmp service" on the Windows machine if they are not running already. You will not need to run the "snmp trap service" however.

    -- UPDATE --

    Net::SNMP will be the package you want, and Example 1 in the docs will work on a windows machine.

Re: AIX box needs to fetch running-process info from Win2K
by Grygonos (Chaplain) on Nov 19, 2004 at 20:05 UTC

    My vote is no.. extremely doubtful that communication would/could take without a standardized or home rolled communication path.

      Well, there is one existing communication path he could use: a file share. By periodically dumping the process list to disk, it could be made available remotely. He could even consider the creation of a certain file as a request to update the process list, if he absolutely need the latest list. But both of those solutions still needs extra software running on the server.