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-06-29 05:28 AM . Last Modified: 2024-03-13 12:55 AM
I have an SUA 1000 UPS with a AP9617 network card.
I wish to use the network card to shut down the ESXi 6.0u2 server that it connects to.
ln PCNS, I configured the shutdown settings to run the command file /opt/APC/PowerChute/group1/bin/doshutdown1.sh when UPS on battery
doshutdown1.sh is simply an executable script that does this:
#!/bin/sh
ssh root@xxx.xxx.xxx.xxx "/sbin/shutdown && /sbin/poweroff"
This script works fine when I am in vMa 6 and executes the script from there directly.
However, when UPS is on battery, it does not execute the command file .
I have attached the cmdfile.log and the error.log
Please help. thank you
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 05:28 AM . Last Modified: 2024-03-13 12:55 AM
Hi,
When PowerChute is installed on a vMA it is installed as root user.
The command file log shows permission denied and publickey, password.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied (publickey,password).
When you run the file from the command prompt are you logged in as root or vi-admin? It is possible that root is being blocked. See this web site for more information.
VMware also offers knowledge base 1013193 "ESXi/ESX 4.x and ESXi 5.x/6.0 shutdown and reboot commands"
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 05:28 AM . Last Modified: 2024-03-13 12:55 AM
Hi,
Most likely the issue is PCNS does not have the proper permissions to shutdown the host so it is running the script but the command is not being acted on.
NOTE: The free version of ESXi is not supported by Schneider Electric. If you purchase the appropriate license from VMware PCNS will shutdown the host without the need for you to write your own script.
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 05:28 AM . Last Modified: 2024-03-13 12:55 AM
Hi Bill ,
Thank you for responding. I was hoping for a more helpful answer rather than " the free version of ESXi is not supported .." For various reasons, not all of us need or are able to afford the paid version of ESXi.
If PCNS does not have the proper permissions, how do we enable it to have the right permissions?
There was previous workarounds using perl scripts, but that was for an older vMa, PCNS and ESXi. Using the same scripts , errors regarding the "hostfile" came up. Would you be able to advise or give pointers on that?
I am hopeful the purchase of the network card would not be a total waste
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 05:28 AM . Last Modified: 2024-03-13 12:55 AM
Hi,
When PowerChute is installed on a vMA it is installed as root user.
The command file log shows permission denied and publickey, password.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied, please try again.
[Tue Sep 27 12:04:48 SGT 2016] - Permission denied (publickey,password).
When you run the file from the command prompt are you logged in as root or vi-admin? It is possible that root is being blocked. See this web site for more information.
VMware also offers knowledge base 1013193 "ESXi/ESX 4.x and ESXi 5.x/6.0 shutdown and reboot commands"
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.