Announcement

Collapse
No announcement yet.

Remotely shut down a Mac over network

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remotely shut down a Mac over network

    So I finally picked up the holy grail of media servers...the prized late 2012 Mac mini (i7). Will be migrating to it and have a question for which I can't find any answer. I have homeseer using psshutdown to kill my wi down server during a power outage and after the ups hits a certain power level and would like to do the same with the Mac. Any ideas?

    Also aside rom media server are there any other interesting things I should be doing with this?

  • #2
    You'll need some type of utility to run on your Mac, which listens to a particular port for a particular command, and then responds by shutting it down.

    This utility is available on the iPhone, and includes a part that runs on the Mac. I wonder if you could email the developer to see what the command his iPhone app sends to the Mac to cause the Mac part to shut down.

    http://ishutdownapp.com/index.html

    Comment


    • #3
      Originally posted by kideon View Post
      So I finally picked up the holy grail of media servers...the prized late 2012 Mac mini (i7). Will be migrating to it and have a question for which I can't find any answer. I have homeseer using psshutdown to kill my wi down server during a power outage and after the ups hits a certain power level and would like to do the same with the Mac. Any ideas?
      Aren't Mac's unix under the covers? Setup ssh for remote access and issue the shutdown command.

      Grab putty's plink.exe to install on your homeseer pc. Then run something like the following untested command:
      plink.exe mac-ip -l mac-user -pw mac-password "shutdown -h now"

      Comment


      • #4
        Kideon,

        If what Iveatch says is true then chech this video out https://www.youtube.com/watch?v=sfzVByTDsqE

        I used this with HomeSeer 2 after creating the icons as shown in the video.

        So I would use Launch application: C:\Program Files (x86)\PuTTY\PuTTY.exe -load powerguyshutdown

        This worked well on OpenMediaVault.


        Eman.
        Last edited by Eman; February 15th, 2016, 02:01 PM.
        The Closer.

        Comment


        • #5
          Originally posted by Eman View Post
          Kideon,

          If what Iveatch says is true then chech this video out https://www.youtube.com/watch?v=sfzVByTDsqE

          I used this with HomeSeer 2 after creating the icons as shown in the video.

          So I would use Launch application: C:\Program Files (x86)\PuTTY\PuTTY.exe -load powerguyshutdown

          This worked well on OpenMediaVault.


          Eman.
          putty is for interactive usage. plink (putty link) is for non-interactive / scripting usage. e.g. plink.exe -load powerguyshutdown should do the same as plink.exe mac-ip -l mac-user -pw mac-password "shutdown -h now".

          Setting up password less login via pageant and puttygen as described in the vidoe is better than using passwords in scripts.

          Comment

          Working...
          X