Run Batch File on Remote PC

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
CobKen
Posts: 1
Joined: Sun Nov 10, 2002 6:00 pm

Post by CobKen »

I'm using HM to monitor Domino Servers. When a test finds that the domino server is hung I want HM to reboot the box. Since the built in reboot utility performs a hard reboot, i'd like HM to run a batch file on the remote pc that will bring down the domino server before rebooting. I've tried using the "Execute External Program" Action w/o any luck - it will run a program on the monitoring machine, but not the remote machine.

Any and all help will be appreciated.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think you can try freeware utility from Sysinternals: http://www.sysinternals.com/ntw2k/freeware/psexec.shtml

Regards
Alex
jricha34
Posts: 59
Joined: Sun Jul 07, 2002 6:00 pm
Location: USA

Post by jricha34 »

Or if you have the resource kit, install RCMD. It is the same as PSEXEC only it doesn't install the service each time it is run, the service is always just sitting there.
Guest

Post by Guest »

Be aware with RCMD. There is no security checking using RCMD!
jricha34
Posts: 59
Joined: Sun Jul 07, 2002 6:00 pm
Location: USA

Post by jricha34 »

Sure there is... You are connected as your user ID which has a security context.

What specifically do you mean?
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

You are connected as 'system account', which impersonates your account.

this means anyone with 'interactive logon privileges' can connect to your server using rcmd and only ntfs permissions will restrict the user (on file level).

By default this means everyone on W2K professional and administrators on servers.

This may have some unwanted side effects if you are not fully in control of the server. Most save way is to set the service on manual, so you have to start the service first (admin only) before you can use it.
dnribbles
Posts: 3
Joined: Sat Nov 30, 2002 6:00 pm

Post by dnribbles »

Isn't hostmonitor supposed to be able to kick someting off on a remote server...
Locked