Ask our Experts
Didn't find what you are looking for? Ask our experts!
Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!
Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-01-29 11:55 AM
Goodday,
After recently installing a new BACK-UPS BX950MI, I wanted to write a command file to shutdown my NAS & mail server. I made two files; shutdownfile.cmd & shutdownbat.bat
In the Serial Shutdown software, under the shutdown settings I have set the following settings (see attached screenshot):
After the UPS has been on battery for 60 seconds, execute command file shutdownfile.cmd. Time required for command file to run 90 seconds.
In the shutdownfile.cmd is the following line:
@START "" "C:\Program Files\APC\PowerChute Serial Shutdown\agent\cmdfiles\shutdownbat.bat"
In the shutdownbat.bat is the following code:
@echo on
ECHO Power failure detected - UPS shutdown
putty.exe -ssh -pw PASSWORD sam@IPADRESS -m "C:\Program Files\APC\PowerChute Serial Shutdown\agent\cmdfiles\shutdownnascommand.txt"
timeout /t 10
shutdown /m \\HP-MAILSERVER/s /c "Power failure detected - UPS shutdown" /t 5
Running the line of code mentioned in the shutdownfile.cmd in a command prompt, everything works as expected and the NAS and mailserver shutdown. But when I press the test button in the Powerchute software or a real power failure occurs, nothing happens with the shutdownfile.cmd and neither the NAS or mailserver shutdown.
Hope anyone can help out or mention what I am missing.
Kind regards,
Sam
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.