Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.
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.