Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shutting down system services remotely

Status
Not open for further replies.

david902

MIS
Jan 6, 2000
160
US
I need to backup a remote server that services requests constantly, open files are the problem.

My backup server allows pre and post processing scripts to run. I would like to have a preprocessing script run on the backup server to shut down the remote service ( closing open files), the backup would run, and another post processing script would run to restart the remote service.

can I run a command from \\backup and shutdown the
BlastedDatabase Service running on \\database.

if so, how. Thanks

nothing obvious jumps out with the NET command
or Resource Kit.





 
you could try something like
A command line service utility

OR

You could set up a NET stop "Service" in the Scheduler on the DATASERVER just before the backup runs and
a NET Start "Service" about the time the backup would finish
not the cleanest method but it works
Steve Bowman
steve.bowman@ultraex.com
 
I don't have the resource kit here,
but I think there is a tool called netsvc.exe

That is what you need.
 
You are correct netsvc from the resource kit will start and stop a service remotly, I just tried it and indeed works Steve Bowman
steve.bowman@ultraex.com

 
You can also use Server Manager for Domains, which allows you to control services on remote machines (assuming you have permissions to do so on the box).

Just select the computer, and click on the Computer menu -> Services.
 
It's a bit nasty that your backup software doesn't support the stopping of services, especially SQL. Anyway, go with what the other guys say.
 
Thanks all, netsvc appears to be the best solution.

Scary tool that activeplus.com tool Steveb7 offered up,
the tools allows use of wildcards, their web site example
shuts down all exchanges services across the network in a single command, devistating in the wrong hands...

anyway...

Bealy, The backup software supports major database entities
Oracle/SQL/Exchange through addons, I'm dealing with a more proprietary solution Alchemy Database from IMR.

THanks again everyone for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top