Batch file to shutdown and restart Domino server

Hi,

Is there a way to run a batch file that would shutdown and restart Lotus Domino server at night ?

Thanks is advance

Subject: Why do you want to do this nightly?

Subject: Stop and restat

It is the only time that there is no one on the system.

Subject: Re: batch file to shutdown and restart Domino server

I just got into this myself.

A few thoughts…

  1. Using the Windows scheduler requires an ID/Password and it must be updated every time the password changes (often a regular occurance for security reasons). That may or may not be an issue in your environment.

  2. Using a program document in Notes has the advantage of being able to run without having to manage the ID/password issues. It has some limitations, however, in what can be done since the commands only run while Domino is up.

  3. If you are running under VM, you may be able to use the VM hypervisor to restart the system (if you need/want to reboot Windows). That may be able to run without an ID/password as well.

  4. Warning: if you use a program document, do not use command=‘nserver’ parms=‘-q’ — Instead, use command=‘nserver’ parms=‘-C “quit”’ (omit the single quotes). This is because the “-q” doesn’t return until the server is shutdown…but the server won’t shutdown until the program document finishes (a deadlock–and ugly).

Subject: Stop and start

If installed as service on Windows :

net stop “DominoServiceName”

net start “DominoServiceName”

by default “DominoServiceName”=“Lotus Domino Server (LotusDominoData)”

Subject: “restart server” at Domino Console also works.

You could create a program record that runs nightly and does the following

server -c “restart server”

-c is just a command line option to send the followind command to the domino console.

jpaganet@us.ibm.com

Subject: nserver -q

Running :

\nserver.exe -q

always used to shut down the domino server. I’m assuming this still works in 8.5.