stopping a service on remote server

D

Danny Parker

As part of a weekly cold backup process I am trying to stop various
services, run the backup then restart the services.
Backupexec 9.0 is being used and I'm using the pre and post backup script
option to execute two cmd scripts. These scripts need to stop 5 services
spread over 2 different servers. 2 on the backupexec server (which is easy,
I just use net stop & net start), the other three are on a second server so
I need to issue a remote service stop and start somehow. Both Servers are
running Windows Server 2003, are members of a domain & the backup account
has full admin rights to them.

Once upon a time I would have used netsvc or rcmd from the NT4 resource kit
to do this, but these no longer exist in the 2000/2003 resource kits
(correct me if i'm wrong but I can't find them!), it also seems 'net stop'
only works for the local host.
I'm sure there is a real simple answer to this, just can't work it out! Any
suggestions without having to buy a 3rd party product?
In case you wondered the services are - SQL2000 & PeopleSoft EO9 (on local
server) & IBM HTTP Server (2) & IBM WebSphere on the remote server.

Cheers!

Danny
(e-mail address removed)
remove zzz's to reply
 
J

John Wunderlich

As part of a weekly cold backup process I am trying to stop
various services, run the backup then restart the services.
Backupexec 9.0 is being used and I'm using the pre and post backup
script option to execute two cmd scripts. These scripts need to
stop 5 services spread over 2 different servers. 2 on the
backupexec server (which is easy, I just use net stop & net
start), the other three are on a second server so I need to issue
a remote service stop and start somehow. Both Servers are running
Windows Server 2003, are members of a domain & the backup account
has full admin rights to them.

Once upon a time I would have used netsvc or rcmd from the NT4
resource kit to do this, but these no longer exist in the
2000/2003 resource kits (correct me if i'm wrong but I can't find
them!), it also seems 'net stop' only works for the local host.
I'm sure there is a real simple answer to this, just can't work it
out!

If I'm not mistaken, the "psservice.exe" command that is part of the
freeware PsTools package from SysInternals will do what you want...

<http://www.sysinternals.com/ntw2k/freeware/pstools.shtml>

HTH,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top