APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:00 AM . Last Modified: 2024-03-05 12:01 AM
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?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:00 AM . Last Modified: 2024-03-05 12:01 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:00 AM . Last Modified: 2024-03-05 12:01 AM
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. |...
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:00 AM . Last Modified: 2024-03-05 12:01 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:00 AM . Last Modified: 2024-03-05 12:01 AM
I think you might need the @START as explained in the knowledge base because you're trying to launch a .exe.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:00 AM . Last Modified: 2024-03-05 12:01 AM
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
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-01 06:00 AM . Last Modified: 2024-03-05 12:01 AM
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.
Link copied. Please paste this link to share this article on your social media post.
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.