Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Success Stories Corner

Shutdown multiple devices during power failure

APC UPS Data Center & Enterprise Solutions Forum

Schneider Electric support forum for our Data Center and Business Power UPS, UPS Accessories, Software, Services, and associated commercial products designed to share knowledge, installation, and configuration.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Communities
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Shutdown multiple devices during power failure
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5022
voidstar_apc
Janeway voidstar_apc
195
Erasmus_apc
Sisko Erasmus_apc
111
TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
108
View All
Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
Beldanan_apc
Crewman Beldanan_apc
Crewman

Posted: ‎2021-06-30 08:53 PM

0 Likes
4
1189
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-06-30 08:53 PM

Shutdown multiple devices during power failure

This was originally posted on APC forums on 9/22/2016


Hi All,

Im looking at getting an  APC  UPS ( APC SUA1000RM1U Smart-UPS 1000VA USB & SERIAL RM 1U 230V #A4 perhaps) to buy sometime to have critical gear shutdown during power outages. Equipment such as Main PC, NAS & DVR.

It needs to be automated so it can occur if Im not home or asleep. Can this be done & what is the best way to achieve this?

Thanks in advance.

Labels
  • Labels:
  • Smart-UPS & Symmetra LX | RM
Reply
Share
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Beldanan_apc
Crewman Beldanan_apc
Crewman

Posted: ‎2021-06-30 08:53 PM

0 Likes
0
1182
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-06-30 08:53 PM

This was originally posted on APC forums on 9/27/2016


Thanks Tim.

See Answer In Context

Reply
Share
Replies 4
UnexpectedBill_apc
Captain UnexpectedBill_apc
Captain

Posted: ‎2021-06-30 08:53 PM

0 Likes
0
1182
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-06-30 08:53 PM

This was originally posted on APC forums on 9/23/2016


The exact answer depends upon the equipment you have. The PC can definitely be made to shut down automatically if needed. It's the DVR and NAS that are more of a question, and it would help to know more about them.

It is possible for a single UPS to signal multiple computers and let them know that they need to shut down. APC has solutions to support this, and there are third party options (such as Network UPS Tools or apcupsd) available as well.

Reply
Share
stevensontj_apc
Ensign stevensontj_apc
Ensign

Posted: ‎2021-06-30 08:53 PM

0 Likes
0
1181
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-06-30 08:53 PM

This was originally posted on APC forums on 9/25/2016


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

Reply
Share
Beldanan_apc
Crewman Beldanan_apc
Crewman

Posted: ‎2021-06-30 08:53 PM

0 Likes
0
1181
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-06-30 08:53 PM

This was originally posted on APC forums on 9/27/2016


Not sure what the DVR will be yet, depends on what I can get. It may in fact be an NVR. 

The NAS is a QNAP TS-419+.

Thanks.

Reply
Share
Beldanan_apc
Crewman Beldanan_apc
Crewman

Posted: ‎2021-06-30 08:53 PM

0 Likes
0
1183
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2021-06-30 08:53 PM

This was originally posted on APC forums on 9/27/2016


Thanks Tim.

Reply
Share
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

Additional options
You do not have permission to remove this product association.
 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account?Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2023 Schneider Electric, Inc