Make batch file for Server Shutdown
Make batch file for Server Shutdown
(OP)
I would like to execute a batch file or command file to shutdown my server. I'm using power chute business edition along with utilizing the console.
I've been on apc's forums i.e. answer id: 7712, however it does me no good, because I do not know how to write a batch file or command file.
I have a server with SBS 2003 connected to a apc smartups 1500 by serial cable.
Any help will be greatly appreciated.
Thank you
I've been on apc's forums i.e. answer id: 7712, however it does me no good, because I do not know how to write a batch file or command file.
I have a server with SBS 2003 connected to a apc smartups 1500 by serial cable.
Any help will be greatly appreciated.
Thank you
RE: Make batch file for Server Shutdown
Do you mean to shutdown your server in the event of a power outage? If so then you shouldn't need to write a batch file. That's the whole idea of the smartUPS. Everything that you want to configure should be configurable through the Powerchute software.
See user manual starting on page 6 (page 8 if you use the PDF page numbers).
Hope this helps.
Please help us help you. Read Tek-Tips posting polices before posting.
Canadian members check out Tek-Tips in Canada for socializing, networking, and anything non-technical.
RE: Make batch file for Server Shutdown
The Powerchute business edition does have a setting where you can configure a batch file or command line. I guess this is where I get confused. Maybe writing a batch file or command line shuts down a Service prior to the UPS shutting down the
server?
Let me know your thoughts!
Again! thank you
RE: Make batch file for Server Shutdown
What service(s) do you want to shut down? Is this an exchange server? If it's just a normal server then you don't need to shut down any service(s) first.
The UPS sends a shutdown signal to the server it doesn't just cut the power.
By default the Low Battery Warning will commence the shutdown sequence when there is two minutes of battery time left on the UPS. Change that to something higher than the default.
The Shutdown Delay controls the amount of time between the commencement of the shutdown sequence and the actual shutdown. The Powerchute software sends out a warning to any devices connected to the server that the server is about to shutdown every 30 seconds from the time that the shutdown sequence is commenced until the connected device disconnects. Set this value at something less than the the Low Battery Warning. Remember when setting the value that this is in seconds and the Low Battery Warning is in minutes.
We have ours set as 8 minutes for the Low Battery Warning and 270 seconds for the Shutdown delay. It gives the users plenty of time to save their work and log out. Caveat: Our settings are based on our load on the UPS. You may need to set different values. Use your Powerchute monitoring to check the "Battery runtime" (or something similar, I don't have access to our servers at the moment to check the exact wording).
We have all our devices, except our printers, on UPSs. Only the servers, switches, router, and modem are on SmartUPSs, the rest are on individual UPSs. This allows the users to save their work before shutting down their computers. Printers, particularly laser and multifunction printers, shouldn't be plugged into UPSs.
Remember, the whole idea of a UPS is to provide uninterrupted power so you don't want your server shutting down immediately if the power is only going to be off for a few seconds.
Hope this helps.
Please help us help you. Read Tek-Tips posting polices before posting.
Canadian members check out Tek-Tips in Canada for socializing, networking, and anything non-technical.
RE: Make batch file for Server Shutdown
Fred Wagner
RE: Make batch file for Server Shutdown
CODE
Brad L.
Network Engineer
Pcubed
"Some things Man was never meant to know. For everything else, there's Google."
RE: Make batch file for Server Shutdown
Brad L.
Network Engineer
Pcubed
"Some things Man was never meant to know. For everything else, there's Google."