Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
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.
Send Invite Cancel
84572members
353845posts

Power management multiple Apple computers with Pro 1300 / 1500

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.

Solved
ScooterIT_apc
Crewman
Crewman
0 Likes
3
289

Power management multiple Apple computers with Pro 1300 / 1500

This was originally posted on APC forums on 10/12/2012


Hi,

Its very easy to manage the preferences off just one Mac with the USB cable connected to the APC.
How about a 2nd Apple computer and a Synology DS1510+ ?
Can I connect all off them via a USB splitter?
Is there a network option?

The connection on the APC looks like a Ethernet Jack. Can I connect it to my home network?

Thanks!

Rogier


Accepted Solutions
stevensontj_apc
Ensign
Ensign
0 Likes
0
289

Re: Power management multiple Apple computers with Pro 1300 / 1500

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


Hi,

I had the same problem. One UPS, 4 PC (NAS) and an iMac to control.

My solution works and has been robustly tested to shutdown MAC and PC - with a cancel option for PC (can't do it on mac once shutdown -h has been invoked)

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

See Answer In Context

Tags (2)
3 Replies 3
BillP
Administrator Administrator
Administrator
0 Likes
0
289

Re: Power management multiple Apple computers with Pro 1300 / 1500

This reply was originally posted by Angela on APC forums on 10/15/2012


unfortunately, this cannot be done with a Back UPS product. the data connection you see is RJ-45 but it is only a similar connection type, not a network connection.

each Back UPS can only support a single USB connection to a computer. you cannot use a USB hub or similar to attach multiple devices because you can only run one instance of software - whether you use ours or apple's native support.

to shutdown or monitor multiple devices with a single UPS, you'd need a Smart UPS product with a network management card.

ScooterIT_apc
Crewman
Crewman
0 Likes
0
289

Re: Power management multiple Apple computers with Pro 1300 / 1500

This was originally posted on APC forums on 10/16/2012


Thanks for the reply, I also figured it out by experimentation.

However when I connected it to a Synology DS1512+ I did see a option in their software to set an IP address...

Something new to learn....

stevensontj_apc
Ensign
Ensign
0 Likes
0
290

Re: Power management multiple Apple computers with Pro 1300 / 1500

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


Hi,

I had the same problem. One UPS, 4 PC (NAS) and an iMac to control.

My solution works and has been robustly tested to shutdown MAC and PC - with a cancel option for PC (can't do it on mac once shutdown -h has been invoked)

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

Tags (2)