APC UPS for Home and Office Forum
Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
I am using my Back-UPS Pro 900 to power my server (Windows 10) connected as a master, its screen connected to "controlled by master" and my Wi-Fi router connected to a regular battery outlet.
When there is a power outage, I would like the computer to shutdown automatically after 5 minutes, but leave my Back-UPS Pro 900 on for as long as it may run on battery, so it would still power my Wi-Fi router so my laptops and smartphones can still connect to the LAN and Internet.
My PowerChute Personal Edition software only allows me to set one shutdown parameter that applies to both. How can I set it to shutdown only the computer?
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
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 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Hi,
That is not possible with PowerChute Personal Edition. It is with APCUPSD or by using the Windows Power Options in the control panel. See FAQ FA159653 for assistance with Windows Power Options.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Is it possible to use Powerchutte PE and the Windows Power options at the same time?
I would still like to get the information and control the UPS (e.g. run self tests), and that can't be done with Windows.
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 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Hi,
Unfortunately no. You cannot run PowerChute and have the UPS configured with the power option simultaneously.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Sam, never mind the Powerchute software. I developed this method and it has been robustly tested for PC and MAC.
For your case, just set the task manager events to be the single PC you want to shutdown...
HOW TO REMOTE SHUTDOWN ALL MACHINES (PC and MAC) ATTACHED TO AN APC UPS
To remotely shutdown any PC on the same network:
CHANGE THE FOLLOWING SETTINGS ON EACH REMOTE COMPUTER:
In CONTROL PANEL
Network and Sharing Center, Change Advanced Sharing settings
"Private" enable "Turn on File and Printer sharing"
In REGEDIT
RUN regedit.exe
Add a new DWORD
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
LocalAccountTokenFilterPolicy DWORD:00000001
In SECPOL (Windows Pro and Enterprise ONLY)
RUN secpol.msc
Local Security Policy, Security Settings, Local Policies, User Rights Assignment
Add "Everyone" to "Force shutdown from a remote system"
Then set up the event task in TASK SCHEDULER from the PC with the UPS attached to it.
RUN taskschd.msc
TO SHUTDOWN ALL NOMINATED MACHINES
CREATE BASIC TASK
Give the TASK a NAME and a DESCRIPTION [next]
Trigger: “When a specific event is logged” [next]
When an event is logged:
LOG: Application
SOURCE: APC UPS SERVICE
EVENT ID: 174
[next]
ACTION: “Start a program” [next]
START A PROGRAM
c:\scripts\upsshutdown.bat [next]
[finish]
TO CANCEL SHUTDOWN OF ALL NOMINATED MACHINES
CREATE BASIC TASK
Give the TASK a NAME and a DESCRIPTION [next]
Trigger: “When a specific event is logged” [next]
When an event is logged:
LOG: Application
SOURCE: APC UPS SERVICE
EVENT ID: 61455
[next]
ACTION: “Start a program” [next]
START A PROGRAM
c:\scripts\upscancelshutdown.bat [next]
[finish]
BATCH FILES (to be added to c:\scripts\)
upsshutdown.bat
shutdown /s /m \\computer_name /t 120 /c “AC BLACKOUT - ORDERED SHUTDOWN IN PROGRESS”
add one line per PC you want to shutdown.
upscancelshutdown.bat
shutdown /a /m \\computer_name
add one line per PC you want to cancel the shutdown process
END OF PC METHOD
To remotely shutdown any MAC on the same network
Make sure the mac is visible on the PC with the UPS attached to it and the MAC user area is shared.
edit the ups shutdown.bat file and add the following lines for each MAC you want to shut down.
net use x: \\MAC-NAME\username
del x:\shutdown.txt
echo shutdown > x:\shutdown.txt
net use x: /delete
On each MAC
Open Automator (applications -> automator)
Choose “Folder Action” and click “choose”
Click the “Choose folder” dialog box, select “other” and select the default user folder that corresponds to \\MAC-NAME\username and click “choose”
In “Library -> utilities” select “Run AppleScript” and drag the action into the right hand panel
replace the default AppleScript with the following:
on run {input, parameters}
tell application "Finder"
if exists POSIX file "/users/timstevenson/shutdown.txt" then
say "There has been a power cut. I'm going to shutdown in one minute."
delay 60
tell application "System Events"
set ProcNm_ to name of every application process whose visible is true
repeat with i_ from 1 to count items of ProcNm_
set TarProc_ to item i_ of ProcNm_
try
tell application TarProc_ to quit
end try
end repeat
repeat with i_ from 1 to count items of ProcNm_
set TarProc_ to item i_ of ProcNm_
try
if TarProc_ does not equal "Finder" then set app_name to TarProc_
set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
if the_pid is not "" then do shell script ("kill -9 " & the_pid)
end try
end repeat
tell application "finder" to shut down
end tell
end if
end tell
return input
end run
SAVE the Automator file as UPSShutdown
END OF MAC METHOD
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 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Rather than quitting all apps, it might be more convenient to hibernate / safe sleep the macs:
pmset -a hibernatemode 25 force
shutdown -s now
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 05:03 AM . Last Modified: 2024-03-27 01:17 AM
Thank voidstar. I'll test this out and report back.
T
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.