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.
Posted: 2021-06-29 01:34 AM . Last Modified: 2024-03-13 05:25 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 01:34 AM . Last Modified: 2024-03-13 05:25 AM
I'm replacing my old ESXi 5.5 server, so I decided to use ESXi 6 (Free) and PCNS 4.1. As I'm running the free ESXi, I know that PCNS can't directly shut down ESXi, but a script can. In the past, this has worked great, but with PCNS 4.1, it appears it's not running the script. Running the script manually shuts down ESXi fine. I followed the instructions at this website : http://blog.rebelit.net/295
Is there something different I need to do to get PCNS 4.1 to run a script?
EDIT: After some more research, it appears the latestPCNS no longer uses /opt/APC/PowerChute/group1/bin/shutdown. I edited the pcnsconfig.ini like this:
shutdownCommand = /opt/APC/PowerChute/group1/bin/shutdown
shutdownCommandFile = /opt/APC/PowerChute/group1/bin/shutdown
Unfortunately, it's still not working. Is there still a way to get PCNS to run a script?
Thanks!
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-06-29 01:34 AM . Last Modified: 2024-03-13 05:25 AM
Hi,
I ran a test file and it worked as expected. These are the settings I used
[Shutdown]
shutdownCommand =
shutdownCommandDuration = 60
shutdownCommandFileEnabled = true
shutdownCommandFileDelay = 0
shutdownCommandFile = \opt\APC\PowerChute\timetest.sh
shutdownCommandFileDuration = 30
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-06-29 01:34 AM . Last Modified: 2024-03-13 05:25 AM
Hi,
PCNS will run a script. You need to enter the full path to where your script resides and the script name. In your example did you write the script shutdown or are you pointing to the shutdown script that is pre-installed? As you mentioned PCNS no longer uses the scripts in the bin directory. PCNS 3.1 and above use Java commands to communicate with the ESXi host/s.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 01:34 AM . Last Modified: 2024-03-13 05:25 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-29 01:34 AM . Last Modified: 2024-03-13 05:25 AM
Thanks for the response. I replaced the existing shutdown script with my modified version (Well, I assume there was originally a shutdown script. I never actually looked before copying over the shutdown and shutdown.pl). So, was my pcnsconfig.ini correct? Should I rename my script something else, and change pcnsconfig.ini to reflect that? Any other steps I might be missing?
Thanks again for the response.
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-06-29 01:34 AM . Last Modified: 2024-03-13 05:25 AM
Hi,
I ran a test file and it worked as expected. These are the settings I used
[Shutdown]
shutdownCommand =
shutdownCommandDuration = 60
shutdownCommandFileEnabled = true
shutdownCommandFileDelay = 0
shutdownCommandFile = \opt\APC\PowerChute\timetest.sh
shutdownCommandFileDuration = 30
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.