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-28 11:09 AM . Last Modified: 2024-03-15 05:46 AM
Hello Everyone,
I have run into a problem that I cannot seem to solve, after quite some research and experimentation, I might add. TL;DR at bottom.
I am trying to script a UPS shutdown for a specific time on my UPS's, so that should there be a break in power overnight, that the systems running are shut down, rather than continue running and deplete the batteries on the UPS's completely. I am not running any outward facing services, so that is not a problem.
In detail, I would like the UPS's to do a graceful sleep or shutdown should there be a power outage between the hours of 10pm and 6am, otherwise the UPS simply needs to continue running until low battery, at which point it needs to power down all the machines and go to sleep. The way in which I thought this would be possible is to put a script against the shutdown of PCNS on one machine that then instructs the UPS to shutdown. But it seems the implementation of SSH is not working. See link below from 2014. Has this been corrected as yet? It does not seem so as far as I can tell, since I am also getting the same event log response as the OP in the post linked below.
2020-04-17 | 22:15:19 | administrator | SCP CLI user 'administr...' logged out from 10.20.20.61. |
2020-04-17 | 22:15:19 | administrator | SSH/SCP: File transfer failed. |
2020-04-17 | 22:15:19 | administrator | SSH/SCP: File transfer started. |
2020-04-17 | 22:15:19 | administrator | SCP CLI user 'administr...' logged in from 10.20.20.61. |
I looked at and tried to solve the problem with basic research on using snmp, but it seems like I would be using a massive hammer to put in a needle, complete overkill.
Refers
https://community.se.com/t5/APC-UPS-Data-Center-Enterprise/bd-p/datacenter-forum
Models in question specifically: SU1000INET, SURT1000XLI, both with AP9631 NMC2 cards
All Windows machines, numerous server 2019 as hyper-v hosts, the desktop machines Windows 10
PCNS on all machines.
Version v6.8.0
Date Jul 22 2019
Time 16:25:46
Has the problem highlighted in the OP of the link above been resolved?
Edited subject
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-28 11:10 AM . Last Modified: 2024-03-15 05:46 AM
Hello Bill,
Sometimes the most elegant solutions are the easiest to overlook. Thank you very much.
I am testing it, cannot see any reason why it will not work.
My sincere thanks
Haig
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-28 11:10 AM . Last Modified: 2024-03-15 05:46 AM
Anyone have any thoughts on this?
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-28 11:10 AM . Last Modified: 2024-03-15 05:46 AM
Hi,
PowerChute Network Shutdown provides the ability to power off the OS and will command the UPS to power off once the OS has powered off. You do not need to write a script as the functionality is built into PowerChute. The one thing you would need to script is a method to change the pcnsconfig.ini file depending on the time of day. The script would be run by Windows task scheduler daily.
Within pcnsconfig.ini there is
[Shutdown]
shutdownCommand =
shutdownCommandDuration = 60
shutdownCommandFileEnabled = false
shutdownCommandFileDelay = 0
shutdownCommandFile =
shutdownCommandFileDuration = 30
turnOffUps = false
The default is false so the UPS will not be commanded down and it will run until the battery depletes. You could write a script the OS would run changing the configuration to true at 10 PM and then another script that changed the configuration to false at 6 AM.
The shutdown process would be
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-28 11:10 AM . Last Modified: 2024-03-15 05:46 AM
Hello Bill,
Sometimes the most elegant solutions are the easiest to overlook. Thank you very much.
I am testing it, cannot see any reason why it will not work.
My sincere thanks
Haig
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.