New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
Powerchute serial shutdown command file
APC UPS for Home and Office Forum
Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.
Search in
Improve your search experience:
Exact phrase→Use quotes " "(e.g., "error 404")
Wildcard→Use * for partial words(e.g., build*, *tion)
AND / OR→Combine keywords(e.g., login AND error, login OR sign‑in)
Keep it short→Use 2–3 relevant words, not full sentences
Filters→Narrow results by section(Knowledge Base, Users, Products)
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-01-2911:55 AM
Powerchute serial shutdown command file
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"
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.