APC UPS Data Center & Enterprise Solutions Forum
Schneider Electric support forum for our Data Center and Business Power UPS, UPS Accessories, Software, Services, and associated commercial products designed to share knowledge, installation, and configuration.
Posted: 2021-07-01 06:00 AM
This question was originally posted by Gerhard on APC forums on 8/13/2014
I have a small network and want to shutdown an Untangle server/firewall from a Windows 2012 using a command in PowerShute Network Shutdown
I want to run a command in PowerShute Network Shutdown and can't get it to work.
I created a batch file here C:\APC_Server_Shutdown\shutdown_untangle.cmd
The command in the batch file is:
C:\APC_Server_Shutdown\plink.exe -batch -pw 111111 root@192.168.16.1 shutdown -h now
Under Configure Shutdown for "Run this command file (full name): I have "C:\APC_Server_Shutdown\shutdown_untangle.cmd" without the quotes (i also tried with the quotes) and it does not work when I run a test. To test I used the same command file under "COnfigure Event for UPS: On Battery and then I pull the pull. The Windows 2012 server shutdown gracefully but not the Untangle.
Can someone help?
Posted: 2021-07-01 06:00 AM
This reply was originally posted by Bill on APC forums on 8/20/2014
Hi,
You need to be sure to enter the full path to the cmd file for PowerChute to be able to run it. So, for the test you did if you put the test .cmd in C:temp the path entered in Powerchute would be C:\temp\test file name.cmd PowerChute will then create the text file cmdtest.txt in C:\apctest.
PCNS is installed using local system account so you need to be sure the local system account has permission to run the script. If the local system account does not you can change the account PCNS used via PCNS1 service.
Posted: 2021-07-01 06:00 AM
This reply was originally posted by Angela on APC forums on 8/14/2014
Does the command file work as expected if you run it outside of PowerChute Network Shutdown?
Here is some other general information we have you could start with if you haven't seen it yet -> Command file is not running within PowerChute Network Shutdown: How to check correct syntax usage. |...
Posted: 2021-07-01 06:00 AM
This reply was originally posted by Gerhard on APC forums on 8/14/2014
Yes the command does work outside of Power PowerChute Network Shutdown. Both, if I double click the file and also if I run it from the command.
Posted: 2021-07-01 06:00 AM
This reply was originally posted by Angela on APC forums on 8/19/2014
I think you might need the @START as explained in the knowledge base because you're trying to launch a .exe.
Posted: 2021-07-01 06:00 AM
This reply was originally posted by Gerhard on APC forums on 8/19/2014
I have already tried that and it is still not working. I'm talking to support and we also testing with the following and it does not work either. I'm currently waiting to hear from support
This is what we have tried with no luck
You can test that the command file is operating correctly by running a simple command file.
time /T >> C:\apctest\cmdtest.txt
Posted: 2021-07-01 06:00 AM
This reply was originally posted by Bill on APC forums on 8/20/2014
Hi,
You need to be sure to enter the full path to the cmd file for PowerChute to be able to run it. So, for the test you did if you put the test .cmd in C:temp the path entered in Powerchute would be C:\temp\test file name.cmd PowerChute will then create the text file cmdtest.txt in C:\apctest.
PCNS is installed using local system account so you need to be sure the local system account has permission to run the script. If the local system account does not you can change the account PCNS used via PCNS1 service.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.